@defra/lis-infra-eslint-config 0.12.7 → 0.13.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/index.js +6 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@defra/lis-infra-eslint-config",
3
- "version": "0.12.7",
3
+ "version": "0.13.0",
4
4
  "description": "Shared ESLint flat config for the LIS ecosystem",
5
5
  "main": "src/index.js",
6
6
  "repository": {
package/src/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import neostandard from 'neostandard'
1
+ import { neostandard, resolveIgnoresFromGitignore } from 'neostandard'
2
2
  import sonarjsConfig from './sonarjs.js'
3
3
  import jsdocConfig from './jsdoc.js'
4
4
 
@@ -9,9 +9,13 @@ import jsdocConfig from './jsdoc.js'
9
9
  * repo-specific overrides after it.
10
10
  */
11
11
  export default [
12
+ // Global ignores: an entry with only `ignores` also excludes whole directories
13
+ {
14
+ name: 'lis/gitignore',
15
+ ignores: resolveIgnoresFromGitignore()
16
+ },
12
17
  ...neostandard({
13
18
  env: ['node', 'vitest'],
14
- ignores: [...neostandard.resolveIgnoresFromGitignore()],
15
19
  noJsx: true,
16
20
  noStyle: true
17
21
  }),