2.3.0 • Published 1 month ago

eslint-config-nbs v2.3.0

Weekly downloads
3
License
MIT
Repository
github
Last release
1 month ago

eslint-config-nbs

npm version

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 nameDescription
eslint-config-nbsThe default config, this exports both the typescript and jasmine configs
eslint-config-nbs/typescriptOur TypeScript linting rules
eslint-config-nbs/jasmineOur 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