1.4.2 • Published 5 months ago
@sladg/eslint-config-base v1.4.2
Eslint config
Opinionated configuration for eslint & prettier.
Usage
Install via npm:
npm install @sladg/eslint-config-base@latest --save-dev
Use latest to ensure you are always up-to-date with current configuration.
In your config file.
Next
In .eslintrc.js
:
module.exports = {
extends: ["@sladg/eslint-config-base/next"]
rules: {
"no-console": "off",
},
}
Node
In .eslintrc.js
:
module.exports = {
extends: ["@sladg/eslint-config-base/node"]
rules: {
"no-console": "off",
},
}
Prettier
Prettier is part of Eslint's configuration, see: https://github.com/prettier/eslint-plugin-prettier#options
You can configure it with prettier/prettier
rule in your .eslintrc.js
:
module.exports = {
rules: {
"prettier/prettier": [
"error",
{
singleQuote: true,
trailingComma: "all",
arrowParens: "always",
},
],
},
}
1.4.2
5 months ago
1.2.0
10 months ago
1.1.0
10 months ago
1.4.1
9 months ago
1.4.0
9 months ago
1.3.1
9 months ago
1.3.0
9 months ago
1.2.1
10 months ago
1.0.1
12 months ago
1.0.0
12 months ago
0.4.1
12 months ago
0.4.0
12 months ago
0.3.0
1 year ago
0.2.7
1 year ago
0.2.6
1 year ago
0.2.5
1 year ago
0.2.4
1 year ago
0.2.3
1 year ago
0.2.2
1 year ago
0.2.1
1 year ago
0.2.0
1 year ago
0.0.1
1 year ago