@neurodevs/eslint-config-ndx 0.0.11 → 1.0.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.
package/build/index.d.ts CHANGED
@@ -1 +1 @@
1
- export { default as esConfigNdx } from './eslint.config.js';
1
+ export { default } from './eslint.config.js';
package/build/index.js CHANGED
@@ -1,2 +1,2 @@
1
- export { default as esConfigNdx } from './eslint.config.js';
1
+ export { default } from './eslint.config.js';
2
2
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,oBAAoB,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAA"}
package/eslint.config.js CHANGED
@@ -1,88 +1,3 @@
1
- import globals from 'globals'
1
+ import esConfigNdx from './src/eslint.config.js'
2
2
 
3
- import prettierConfig from 'eslint-config-prettier/flat'
4
- import biomeConfig from 'eslint-config-biome'
5
-
6
- import esTypescript from '@typescript-eslint/eslint-plugin'
7
- import esParser from '@typescript-eslint/parser'
8
-
9
- import esImport from 'eslint-plugin-import'
10
- import esReact from 'eslint-plugin-react'
11
-
12
- export default [
13
- prettierConfig,
14
- {
15
- ignores: ['build/**'],
16
- plugins: {
17
- import: esImport,
18
- react: esReact,
19
- },
20
- languageOptions: {
21
- ecmaVersion: 'latest',
22
- sourceType: 'module',
23
- globals: {
24
- ...globals.browser,
25
- ...globals.node,
26
- ...globals.jest,
27
- },
28
- },
29
- rules: {
30
- curly: 'error',
31
- 'no-console': 'off',
32
- 'no-undef': 'off',
33
- 'no-var': 'error',
34
- 'no-unreachable': 'error',
35
- 'no-unused-vars': 'off',
36
- 'object-shorthand': ['error', 'always'],
37
- 'react/jsx-no-undef': 'error',
38
- 'react/prop-types': 'off',
39
- },
40
- settings: {
41
- react: {
42
- version: 'detect',
43
- },
44
- },
45
- },
46
- {
47
- files: ['**/*.ts', '**/*.tsx'],
48
- plugins: {
49
- '@typescript-eslint': esTypescript,
50
- },
51
- languageOptions: {
52
- parser: esParser,
53
- },
54
- rules: {
55
- '@typescript-eslint/no-unused-vars': [
56
- 'error',
57
- {
58
- argsIgnorePattern: '^_',
59
- varsIgnorePattern: '^_',
60
- caughtErrorsIgnorePattern: '^_',
61
- },
62
- ],
63
- '@typescript-eslint/no-empty-interface': 0,
64
- // TODO: Remove this if we can; it isn't a good rule to squash.
65
- // Sometimes this is fine, but sometimes it masks a compile error.
66
- '@typescript-eslint/ban-ts-ignore': 0,
67
- '@typescript-eslint/no-empty-function': 0,
68
- '@typescript-eslint/explicit-function-return-type': 0,
69
- '@typescript-eslint/no-explicit-any': 0,
70
- },
71
- },
72
- {
73
- files: ['**/*.js', '**/*.mjs'],
74
- plugins: {
75
- import: esImport,
76
- },
77
- rules: {
78
- ...esImport.configs.recommended.rules,
79
- },
80
- },
81
- {
82
- files: ['**/eslint.config.js'],
83
- rules: {
84
- 'import/no-unresolved': 'off',
85
- },
86
- },
87
- biomeConfig,
88
- ]
3
+ export default esConfigNdx
package/index.d.ts ADDED
@@ -0,0 +1,5 @@
1
+ import type { Linter } from 'eslint'
2
+
3
+ declare const esConfigNdx: Linter.Config[]
4
+
5
+ export default esConfigNdx
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@neurodevs/eslint-config-ndx",
3
- "version": "0.0.11",
3
+ "version": "1.0.0",
4
4
  "description": "ESLint config for the Neurodevs ecosystem",
5
5
  "type": "module",
6
6
  "keywords": [
@@ -20,6 +20,7 @@
20
20
  "url": "https://github.com/neurodevs/eslint-config-ndx/issues"
21
21
  },
22
22
  "main": "build/index.js",
23
+ "types": "index.d.ts",
23
24
  "scripts": {
24
25
  "build.ci": "yarn run build.tsc && yarn run lint",
25
26
  "build.dev": "yarn run build.tsc --sourceMap ; yarn run lint",
package/src/index.ts CHANGED
@@ -1 +1 @@
1
- export { default as esConfigNdx } from './eslint.config.js'
1
+ export { default } from './eslint.config.js'
package/src/index.d.ts DELETED
@@ -1,3 +0,0 @@
1
- import type { Linter } from 'eslint'
2
-
3
- export const esConfigNdx: Linter.Config[]