Monday 24 April 2017

ESLint Rule Set?

I'm trying to get ESLint setup to validate my code. I created a default .eslintrc.json file, but it seems like there should be more to it.{ "env": { "browser": true, "commonjs": true, "es6": true, "node": true }, "parserOptions": { "ecmaFeatures": { "jsx": true }, "sourceType": "module" }, "rules": { "no-const-assign": "warn", "no-this-before-super": "warn", "no-undef": "warn", "no-unreachable": "warn", "no-unused-vars": "warn", "constructor-super": "warn", "valid-typeof": "warn" } } What set of rules is most common? Can anyone point me to a file I can use as a starting point?

Submitted April 24, 2017 at 06:57PM by fyzbo

No comments:

Post a Comment