1.1.25 • Published 1 year ago
@percolate/eslint-plugin v1.1.25
@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.25
1 year ago
1.1.24
1 year ago
1.1.19
4 years ago
1.1.18
4 years ago
1.1.16
4 years ago
1.1.15
4 years ago
1.1.12
4 years ago
1.1.14
4 years ago
1.1.13
4 years ago
1.1.11
4 years ago
1.1.10
4 years ago
1.1.9
4 years ago
1.1.8
4 years ago
1.1.7
4 years ago
1.1.5
6 years ago
1.1.4
6 years ago
1.1.3
6 years ago
1.1.2
6 years ago
1.1.1
6 years ago
1.1.0
6 years ago
1.0.0
6 years ago
0.1.1
6 years ago
0.1.0
6 years ago