2.3.0 • Published 1 month ago
eslint-config-nbs v2.3.0
eslint-config-nbs
NBS ESLint config for TypeScript projects
Usage
Install with npm:
npm install eslint-config-nbs --savedev
Add a .eslintrc.js
or .eslintrc.json
file to the root of your repo. Configure ESLint to use the NBS config.
e.g.:
module.exports = {
parser: '@typescript-eslint/parser',
parserOptions: {
project: [
'tsconfig.json',
'tsconfig.spec.json',
],
sourceType: 'module',
},
plugins: ['@typescript-eslint/eslint-plugin'],
extends: [
'eslint-config-nbs',
],
root: true,
env: {
node: true,
jasmine: true,
},
ignorePatterns: ['.eslintrc.js'],
// Override or set any additional rules
rules: {
"no-underscore-dangle": "off",
}
};
Recommended
Add a .eslintignore
to the root of your repo with node_modules
.
Available configs
From v2.3.0
this package now exports multiple configs which you can extend in your own projects.
Config name | Description |
---|---|
eslint-config-nbs | The default config, this exports both the typescript and jasmine configs |
eslint-config-nbs/typescript | Our TypeScript linting rules |
eslint-config-nbs/jasmine | Our Jasmine linting rules |
2.3.0
1 month ago
2.2.0
4 months ago
2.1.7
11 months ago
2.1.6
1 year ago
2.1.2
1 year ago
2.1.1
1 year ago
2.1.4
1 year ago
2.1.3
1 year ago
2.1.5
1 year ago
2.1.0
1 year ago
2.0.0
2 years ago
1.2.0
5 years ago
1.1.0
5 years ago
1.0.5
5 years ago
1.0.4
5 years ago
1.0.3
5 years ago
1.0.2
5 years ago
1.0.1
5 years ago
1.0.0
5 years ago