1.1.19 • Published 3 years ago
@percolate/eslint-plugin v1.1.19
@percolate/eslint-plugin
Percolate ESlint configs/rules optimized for TypeScript.
Installation
$ yarn add @percolate/eslint-plugin --dev
Usage
Node
// .eslintrc.js
module.exports = {
extends: ['plugin:@percolate/base', 'plugin:@percolate/node'],
rules: {
// configure rule
'@percolate/import-blacklist': [
'error',
[
{
import: 'underscore',
reason: 'Use lodash instead',
},
],
],
},
}
React
React, be sure to leverage the following config:
// .eslintrc.js
module.exports = {
extends: ['plugin:@percolate/base', 'plugin:@percolate/react'],
}
eslint-plugin-import
The rule import/no-unresolved
is on by default which means eslint-plugin-import has to be configured.
plugin:@percolate/node
configures eslint-import-resolver-node automatically.
Webpack
If you're using Webpack, you'll need to yarn add eslint-import-resolver-webpack --dev
and configure it:
// .eslintrc.js
module.exports = {
extends: ['plugin:@percolate/base', 'plugin:@percolate/react'],
settings: {
'import/resolver': {
'eslint-import-resolver-webpack': {
config: 'webpack.dev.config.js',
},
},
},
}
Supported Configs
Supported Rules
1.1.19
3 years ago
1.1.18
3 years ago
1.1.16
3 years ago
1.1.15
3 years ago
1.1.12
3 years ago
1.1.14
3 years ago
1.1.13
3 years ago
1.1.11
3 years ago
1.1.10
3 years ago
1.1.9
3 years ago
1.1.8
3 years ago
1.1.7
3 years ago
1.1.5
4 years ago
1.1.4
4 years ago
1.1.3
4 years ago
1.1.2
4 years ago
1.1.1
5 years ago
1.1.0
5 years ago
1.0.0
5 years ago
0.1.1
5 years ago
0.1.0
5 years ago