eslint-config-adjunct
Advanced tools
Comparing version 4.0.2 to 4.1.0
@@ -48,4 +48,7 @@ const checkMissing = require('./lib/missing') | ||
// Disable some rules in unit tests | ||
rules.push('test-overrides') | ||
module.exports = { | ||
extends: rules.map((plugin) => require.resolve(`./rules/${plugin}`)), | ||
} |
@@ -17,4 +17,3 @@ const makePluginName = (plugin) => `eslint-plugin-${plugin}` | ||
${installed.join('\n ')} | ||
`) | ||
} |
{ | ||
"name": "eslint-config-adjunct", | ||
"version": "4.0.2", | ||
"version": "4.1.0", | ||
"author": "David J. Bradshaw", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
# eslint-config-adjunct | ||
> _A mildly opinionated collection of the best *esLint plugins* to use alongside your main eslint configuration._ | ||
> _A reasonable collection of *plugins* to use alongside your main esLint configuration._ | ||
This config is designed to be used alongside any of the major esLint configs, such as [airbnb](https://github.com/airbnb/javascript), [standard](https://github.com/standard/eslint-config-standard) or [eslint:recommended](https://eslint.org/docs/rules/). It provides a range of useful plugins that are often too time consuming to setup and provides an easy way to install just the plugins you need on your project. | ||
This config is designed to be used alongside any of the major esLint configs, such as [airbnb](https://github.com/airbnb/javascript), [standard](https://github.com/standard/eslint-config-standard) or [eslint:recommended](https://eslint.org/docs/rules/). It provides a range of useful plugins that are often too time consuming to setup and provides an easy way to install just the plugins you need, based on your project's dependancies. | ||
@@ -69,3 +69,3 @@ ## Install | ||
- [eslint-plugin-ramda](https://github.com/ramda/eslint-plugin-ramda) | ||
- [eslint-plugin-redux-react](https://github.com/DianaSuvorova/eslint-plugin-react-redux#readme) | ||
- [eslint-plugin-react-redux](https://github.com/DianaSuvorova/eslint-plugin-react-redux#readme) | ||
- [eslint-plugin-redux-saga](https://github.com/pke/eslint-plugin-redux-saga) | ||
@@ -75,3 +75,3 @@ | ||
If prettier is installed, any rules that may conflict with setting in Prettier will be disabled. The plugin should read you Prettier config from your projects route. | ||
If prettier is installed, any rules that may conflict with Prettier will be disabled. The plugin should read you Prettier config from your projects route. | ||
@@ -96,4 +96,8 @@ - [eslint-config-prettier](https://github.com/prettier/eslint-config-prettier) | ||
When linting code snippets in Markdown files, a few rules relating to globals and unused vars are disabled. | ||
When linting code snippets in Markdown files, a few [rules](https://github.com/davidjbradshaw/eslint-config-adjunct/blob/master/rules/markdown.js#L3) relating to globals and unused vars are disabled. | ||
### Tests | ||
For test files a few [rules](https://github.com/davidjbradshaw/eslint-config-adjunct/blob/master/rules/test-overrides.js) are turned off, to better to support normal unit test code styles. | ||
### Switch-Case | ||
@@ -100,0 +104,0 @@ |
@@ -6,15 +6,2 @@ module.exports = { | ||
extends: ['plugin:jasmine/recommended'], | ||
overrides: [ | ||
{ | ||
files: ['**/*.spec.js', '**/*.test.js'], | ||
rules: { | ||
'func-names': 'off', | ||
'global-require': 'off', | ||
'no-shadow': 'off', | ||
'max-lines': 'off', | ||
'max-nested-callbacks': 'off', | ||
'max-statements': 'off', | ||
}, | ||
}, | ||
], | ||
plugins: ['jasmine'], | ||
@@ -21,0 +8,0 @@ rules: { |
@@ -8,13 +8,2 @@ module.exports = { | ||
{ | ||
files: ['**/*.spec.js', '**/*.test.js'], | ||
rules: { | ||
'func-names': 'off', | ||
'global-require': 'off', | ||
'no-shadow': 'off', | ||
'max-lines': 'off', | ||
'max-nested-callbacks': 'off', | ||
'max-statements': 'off', | ||
}, | ||
}, | ||
{ | ||
files: ['setupJest.js'], | ||
@@ -21,0 +10,0 @@ rules: { |
module.exports = { | ||
extends: ['plugin:mocha/recommended'], | ||
overrides: [ | ||
{ | ||
files: ['**/*.spec.js', '**/*.test.js'], | ||
rules: { | ||
'func-names': 'off', | ||
'global-require': 'off', | ||
'no-shadow': 'off', | ||
'max-lines': 'off', | ||
'max-nested-callbacks': 'off', | ||
'max-statements': 'off', | ||
}, | ||
}, | ||
], | ||
plugins: ['mocha'], | ||
} |
21803
40
134
487