Shareable ESLint config, based on airbnb/javascript, bundled as a plugin
MIT License
package | from | to |
---|---|---|
eslint | ^5.6.0 and ^6.0.0 | >=5.6.0 |
eslint-config-airbnb | 18.0.1 | 18.1.0 |
eslint-config-prettier | 6.1.0 | 6.11.0 |
eslint-plugin-import | ^2.18.2 | ^2.20.2 |
eslint-plugin-jsx-a11y | ^6.2.3 | ^6.2.3 |
eslint-plugin-react | ^7.14.3 | ^7.20.0 |
eslint-plugin-react-hooks | ^1.7.0 | ^4.0.4 |
Published by thibaudcolas about 5 years ago
package | from | to |
---|---|---|
eslint | ^5.6.0 | ^5.6.0 and ^6.0.0 |
eslint-config-airbnb | 17.1.0 | 18.0.1 |
eslint-config-prettier | 3.0.1 | 6.1.0 |
eslint-plugin-import | ^2.14.0 | ^2.18.2" |
eslint-plugin-jsx-a11y | ^6.1.1 | ^6.2.3" |
eslint-plugin-react | ^7.11.1 | ^7.14.3" |
eslint-plugin-react-hooks | N/A | ^1.7.0 |
Additionally, eslint-plugin-react-hooks has been added to enforce the rules of hooks.
Published by thibaudcolas about 6 years ago
"import/no-extraneous-dependencies": Array [
2,
Object {
- "devDependencies": true,
+ "devDependencies": Array [
+ "test/**",
+ "tests/**",
+ "spec/**",
+ "**/__tests__/**",
+ "**/__mocks__/**",
+ "test.{js,jsx}",
+ "test-*.{js,jsx}",
+ "**/*{.,_}{test,spec}.{js,jsx}",
+ "**/jest.config.js",
+ "**/vue.config.js",
+ "**/webpack.config.js",
+ "**/webpack.config.*.js",
+ "**/rollup.config.js",
+ "**/rollup.config.*.js",
+ "**/gulpfile.js",
+ "**/gulpfile.*.js",
+ "**/Gruntfile{,.js}",
+ "**/protractor.conf.js",
+ "**/protractor.conf.*.js",
+ "**/dangerfile.js",
+ ],
},
],
- "import/prefer-default-export": "off",
+ "import/prefer-default-export": "error",
- "jsx-a11y/label-has-associated-control": "error",
+ "jsx-a11y/label-has-associated-control": "off",
- "react/jsx-boolean-value": "off",
+ "react/jsx-boolean-value": "error",
- "react/jsx-indent": "error",
+ "react/jsx-indent": "off",
- "react/jsx-indent-props": "error",
+ "react/jsx-indent-props": "off",
- "react/sort-comp": "off",
+ "react/sort-comp": "error",
- "arrow-body-style": "off",
+ "arrow-body-style": "error",
- "eol-last": "warn",
+ "eol-last": "off",
- "id-length": "off",
+ "id-length": "off",
- "indent": "error",
+ "indent": "off",
- "jsx-quotes": "warn"
+ "jsx-quotes": "off"
- "max-len": "warn"
+ "max-len": "off"
"no-console": Array [
"warn",
- Object {
- "allow": Array [
- "warn",
- "error",
- "time",
- "timeEnd",
- ],
- },
],
- "no-new": "off"
+ "no-new": "error",
- "no-plusplus": "off"
+ "no-plusplus": "error",
"object-shorthand": Array [
"error",
- "methods",
+ "always",
+ Object {
+ "avoidQuotes": true,
+ "ignoreConstructors": false,
+ },
],