@neurodevs/eslint-config-ndx 0.0.1

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/.nvmrc ADDED
@@ -0,0 +1 @@
1
+ lts/*
@@ -0,0 +1,58 @@
1
+ {
2
+ "version": "0.2.0",
3
+ "configurations": [
4
+ {
5
+ "type": "node",
6
+ "request": "attach",
7
+ "name": "attach.tests",
8
+ "port": 5200,
9
+ "restart": true,
10
+ "timeout": 10000
11
+ },
12
+ {
13
+ "type": "node",
14
+ "request": "launch",
15
+ "name": "test.file",
16
+ "runtimeExecutable": "node",
17
+ "runtimeArgs": [
18
+ "--inspect-brk",
19
+ "--trace-warnings",
20
+ "${workspaceFolder}/node_modules/.bin/jest",
21
+ "${fileBasenameNoExtension}",
22
+ "--detectOpenHandles"
23
+ ],
24
+ "cwd": "${workspaceFolder}",
25
+ "console": "integratedTerminal",
26
+ "internalConsoleOptions": "neverOpen"
27
+ },
28
+ {
29
+ "type": "node",
30
+ "request": "launch",
31
+ "name": "test.all",
32
+ "runtimeExecutable": "node",
33
+ "runtimeArgs": [
34
+ "--inspect-brk",
35
+ "--trace-warnings",
36
+ "${workspaceFolder}/node_modules/.bin/jest"
37
+ ],
38
+ "cwd": "${workspaceFolder}",
39
+ "console": "integratedTerminal",
40
+ "internalConsoleOptions": "neverOpen"
41
+ },
42
+ {
43
+ "type": "node",
44
+ "request": "launch",
45
+ "name": "boot",
46
+ "runtimeExecutable": "yarn",
47
+ "runtimeArgs": [
48
+ "run",
49
+ "--inspect-brk",
50
+ "--trace-warnings",
51
+ "boot"
52
+ ],
53
+ "cwd": "${workspaceFolder}",
54
+ "console": "integratedTerminal",
55
+ "internalConsoleOptions": "neverOpen"
56
+ }
57
+ ]
58
+ }
@@ -0,0 +1,67 @@
1
+ {
2
+ "debug.node.autoAttach": "on",
3
+ "git.ignoreLimitWarning": true,
4
+ "javascript.validate.enable": false,
5
+ "files.watcherExclude": {
6
+ "**/.git/objects/**": true,
7
+ "**/.git/subtree-cache/**": true,
8
+ "**/build/**": true,
9
+ "**/node_modules/**": true,
10
+ },
11
+ "search.exclude": {
12
+ "**/build/**": true,
13
+ "**/node_modules/**": true,
14
+ "**/.next/**": true
15
+ },
16
+ "editor.maxTokenizationLineLength": 20000000,
17
+ "[javascript]": {
18
+ "editor.formatOnSave": false
19
+ },
20
+ "[javascriptreact]": {
21
+ "editor.formatOnSave": false
22
+ },
23
+ "[typescript]": {
24
+ "editor.formatOnSave": false
25
+ },
26
+ "[typescriptreact]": {
27
+ "editor.formatOnSave": false
28
+ },
29
+ "[handlebars]": {
30
+ "editor.formatOnSave": false
31
+ },
32
+ "typescript.tsdk": "node_modules/typescript/lib",
33
+ "cSpell.ignorePaths": [
34
+ "**/package-lock.json",
35
+ "**/node_modules/**",
36
+ "**/build/**",
37
+ "**/vscode-extension/**",
38
+ "**/.git/objects/**",
39
+ ".vscode",
40
+ ".spruce"
41
+ ],
42
+ "cSpell.words": [
43
+ "arkit",
44
+ "autogenerated",
45
+ "scrollable",
46
+ "serializable"
47
+ ],
48
+ "debug.javascript.unmapMissingSources": true,
49
+ "javascript.preferences.importModuleSpecifier": "relative",
50
+ "typescript.preferences.importModuleSpecifier": "relative",
51
+ "eslint.useFlatConfig": true,
52
+ "eslint.enable": true,
53
+ "eslint.validate": [
54
+ "javascript",
55
+ "javascriptreact",
56
+ "typescript",
57
+ "typescriptreact"
58
+ ],
59
+ "eslint.workingDirectories": [
60
+ "./"
61
+ ],
62
+ "typescript.validate.enable": true,
63
+ "editor.formatOnSave": false,
64
+ "editor.codeActionsOnSave": {
65
+ "source.fixAll.eslint": "always"
66
+ }
67
+ }
@@ -0,0 +1,130 @@
1
+ {
2
+ "version": "2.0.0",
3
+ "tasks": [
4
+ {
5
+ "type": "npm",
6
+ "script": "watch.build.dev",
7
+ "group": "build",
8
+ "label": "watch.build.dev & problem.watcher",
9
+ "isBackground": true,
10
+ "runOptions": {
11
+ "runOn": "folderOpen"
12
+ },
13
+ "promptOnClose": false,
14
+ "presentation": {
15
+ "focus": false,
16
+ "reveal": "never"
17
+ },
18
+ "problemMatcher": {
19
+ "base": "$tsc-watch",
20
+ "applyTo": "allDocuments"
21
+ }
22
+ },
23
+ {
24
+ "label": "test.file",
25
+ "command": "spruce",
26
+ "args": [
27
+ "test",
28
+ "--inspect",
29
+ "5200",
30
+ "--pattern",
31
+ "${fileBasenameNoExtension}",
32
+ "--watchMode",
33
+ "standard"
34
+ ],
35
+ "promptOnClose": false,
36
+ "group": {
37
+ "kind": "test",
38
+ "isDefault": true
39
+ },
40
+ "presentation": {
41
+ "reveal": "always",
42
+ "panel": "dedicated"
43
+ },
44
+ "problemMatcher": []
45
+ },
46
+ {
47
+ "label": "test.reporter",
48
+ "command": "spruce",
49
+ "args": [
50
+ "test",
51
+ "--shouldHoldAtStart",
52
+ "true",
53
+ "--watchMode",
54
+ "smart"
55
+ ],
56
+ "promptOnClose": false,
57
+ "group": "test",
58
+ "runOptions": {
59
+ "runOn": "folderOpen"
60
+ },
61
+ "presentation": {
62
+ "panel": "shared",
63
+ "focus": true,
64
+ "reveal": "always"
65
+ }
66
+ },
67
+ {
68
+ "label": "spruce",
69
+ "type": "shell",
70
+ "command": "spruce ${input:spruceCommand}",
71
+ "problemMatcher": [],
72
+ "presentation": {
73
+ "reveal": "always",
74
+ "focus": true,
75
+ "panel": "new",
76
+ "clear": false
77
+ }
78
+ },
79
+ {
80
+ "label": "shell",
81
+ "type": "shell",
82
+ "command": "${input:command} ${input:optionsCommand}",
83
+ "problemMatcher": [],
84
+ "presentation": {
85
+ "reveal": "always",
86
+ "focus": true,
87
+ "panel": "new",
88
+ "clear": false
89
+ }
90
+ },
91
+ {
92
+ "label": "ndx",
93
+ "type": "shell",
94
+ "command": "ndx ${input:ndxCommand}",
95
+ "problemMatcher": [],
96
+ "presentation": {
97
+ "reveal": "always",
98
+ "focus": true,
99
+ "panel": "new",
100
+ "clear": false
101
+ }
102
+ }
103
+ ],
104
+ "inputs": [
105
+ {
106
+ "id": "spruceCommand",
107
+ "description": "spruce command",
108
+ "default": "create.test",
109
+ "type": "promptString"
110
+ },
111
+ {
112
+ "id": "command",
113
+ "description": "command",
114
+ "default": "yarn",
115
+ "type": "promptString"
116
+ },
117
+ {
118
+ "id": "optionsCommand",
119
+ "description": "optionsCommand",
120
+ "default": "add",
121
+ "type": "promptString"
122
+ },
123
+ {
124
+ "id": "ndxCommand",
125
+ "description": "ndx command",
126
+ "default": "create.module",
127
+ "type": "promptString"
128
+ }
129
+ ]
130
+ }
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 neurodevs
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,2 @@
1
+ # eslint-config-ndx
2
+ ESLint flat-config preset for modern Node.js + TypeScript projects
@@ -0,0 +1,8 @@
1
+ {
2
+ "skipped": [
3
+ "skill"
4
+ ],
5
+ "installed": [
6
+ "test"
7
+ ]
8
+ }
@@ -0,0 +1,2 @@
1
+ declare const _default: import("eslint/config").Config[];
2
+ export default _default;
@@ -0,0 +1,79 @@
1
+ import globals from 'globals';
2
+ import { defineConfig } from 'eslint/config';
3
+ import prettierConfig from 'eslint-config-prettier';
4
+ import esTypescript from '@typescript-eslint/eslint-plugin';
5
+ import esParser from '@typescript-eslint/parser';
6
+ import esImport from 'eslint-plugin-import';
7
+ import esReact from 'eslint-plugin-react';
8
+ const defaultFormattingRules = {
9
+ curly: 'error',
10
+ 'no-console': 'off',
11
+ 'no-undef': 'off',
12
+ 'no-var': 'error',
13
+ 'no-unreachable': 'error',
14
+ 'no-unused-vars': 'off',
15
+ 'object-shorthand': ['error', 'always'],
16
+ 'react/jsx-no-undef': 'error',
17
+ 'react/prop-types': 'off',
18
+ };
19
+ export default defineConfig([
20
+ prettierConfig,
21
+ {
22
+ ignores: ['build/**'],
23
+ plugins: {
24
+ import: esImport,
25
+ react: esReact,
26
+ },
27
+ languageOptions: {
28
+ ecmaVersion: 'latest',
29
+ sourceType: 'module',
30
+ globals: {
31
+ ...globals.browser,
32
+ ...globals.node,
33
+ ...globals.jest,
34
+ },
35
+ },
36
+ rules: {
37
+ ...defaultFormattingRules,
38
+ },
39
+ settings: {
40
+ react: {
41
+ version: 'detect',
42
+ },
43
+ },
44
+ },
45
+ {
46
+ files: ['**/*.ts', '**/*.tsx'],
47
+ plugins: {
48
+ '@typescript-eslint': esTypescript,
49
+ },
50
+ languageOptions: {
51
+ parser: esParser,
52
+ },
53
+ rules: {
54
+ '@typescript-eslint/no-unused-vars': [
55
+ 'error',
56
+ {
57
+ argsIgnorePattern: '^_',
58
+ varsIgnorePattern: '^_',
59
+ caughtErrorsIgnorePattern: '^_',
60
+ },
61
+ ],
62
+ '@typescript-eslint/no-empty-interface': 0,
63
+ // TODO: Remove this if we can; it isn't a good rule to squash.
64
+ // Sometimes this is fine, but sometimes it masks a compile error.
65
+ '@typescript-eslint/ban-ts-ignore': 0,
66
+ '@typescript-eslint/no-empty-function': 0,
67
+ '@typescript-eslint/explicit-function-return-type': 0,
68
+ '@typescript-eslint/no-explicit-any': 0,
69
+ },
70
+ },
71
+ {
72
+ files: ['*.js'],
73
+ plugins: {
74
+ '@typescript-eslint': esTypescript,
75
+ },
76
+ rules: Object.assign(esImport.rules),
77
+ },
78
+ ]);
79
+ //# sourceMappingURL=eslint.config.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"eslint.config.mjs","sourceRoot":"","sources":["../src/eslint.config.mjs"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,SAAS,CAAA;AAE7B,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAA;AAC5C,OAAO,cAAc,MAAM,wBAAwB,CAAA;AAEnD,OAAO,YAAY,MAAM,kCAAkC,CAAA;AAC3D,OAAO,QAAQ,MAAM,2BAA2B,CAAA;AAEhD,OAAO,QAAQ,MAAM,sBAAsB,CAAA;AAC3C,OAAO,OAAO,MAAM,qBAAqB,CAAA;AAEzC,MAAM,sBAAsB,GAAG;IAC3B,KAAK,EAAE,OAAO;IACd,YAAY,EAAE,KAAK;IACnB,UAAU,EAAE,KAAK;IACjB,QAAQ,EAAE,OAAO;IACjB,gBAAgB,EAAE,OAAO;IACzB,gBAAgB,EAAE,KAAK;IACvB,kBAAkB,EAAE,CAAC,OAAO,EAAE,QAAQ,CAAC;IACvC,oBAAoB,EAAE,OAAO;IAC7B,kBAAkB,EAAE,KAAK;CAC5B,CAAA;AAED,eAAe,YAAY,CAAC;IACxB,cAAc;IACd;QACI,OAAO,EAAE,CAAC,UAAU,CAAC;QACrB,OAAO,EAAE;YACL,MAAM,EAAE,QAAQ;YAChB,KAAK,EAAE,OAAO;SACjB;QACD,eAAe,EAAE;YACb,WAAW,EAAE,QAAQ;YACrB,UAAU,EAAE,QAAQ;YACpB,OAAO,EAAE;gBACL,GAAG,OAAO,CAAC,OAAO;gBAClB,GAAG,OAAO,CAAC,IAAI;gBACf,GAAG,OAAO,CAAC,IAAI;aAClB;SACJ;QACD,KAAK,EAAE;YACH,GAAG,sBAAsB;SAC5B;QACD,QAAQ,EAAE;YACN,KAAK,EAAE;gBACH,OAAO,EAAE,QAAQ;aACpB;SACJ;KACJ;IACD;QACI,KAAK,EAAE,CAAC,SAAS,EAAE,UAAU,CAAC;QAC9B,OAAO,EAAE;YACL,oBAAoB,EAAE,YAAY;SACrC;QACD,eAAe,EAAE;YACb,MAAM,EAAE,QAAQ;SACnB;QACD,KAAK,EAAE;YACH,mCAAmC,EAAE;gBACjC,OAAO;gBACP;oBACI,iBAAiB,EAAE,IAAI;oBACvB,iBAAiB,EAAE,IAAI;oBACvB,yBAAyB,EAAE,IAAI;iBAClC;aACJ;YACD,uCAAuC,EAAE,CAAC;YAC1C,+DAA+D;YAC/D,kEAAkE;YAClE,kCAAkC,EAAE,CAAC;YACrC,sCAAsC,EAAE,CAAC;YACzC,kDAAkD,EAAE,CAAC;YACrD,oCAAoC,EAAE,CAAC;SAC1C;KACJ;IACD;QACI,KAAK,EAAE,CAAC,MAAM,CAAC;QACf,OAAO,EAAE;YACL,oBAAoB,EAAE,YAAY;SACrC;QACD,KAAK,EAAE,MAAM,CAAC,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC;KACvC;CACJ,CAAC,CAAA"}
@@ -0,0 +1 @@
1
+ export { default } from './eslint.config.mjs';
package/build/index.js ADDED
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.default = void 0;
7
+ var eslint_config_mjs_1 = require("./eslint.config.mjs");
8
+ Object.defineProperty(exports, "default", { enumerable: true, get: function () { return __importDefault(eslint_config_mjs_1).default; } });
9
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;AAAA,yDAA6C;AAApC,6HAAA,OAAO,OAAA"}
@@ -0,0 +1,83 @@
1
+ import globals from 'globals'
2
+
3
+ import { defineConfig } from 'eslint/config'
4
+ import prettierConfig from 'eslint-config-prettier'
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
+ const defaultFormattingRules = {
13
+ curly: 'error',
14
+ 'no-console': 'off',
15
+ 'no-undef': 'off',
16
+ 'no-var': 'error',
17
+ 'no-unreachable': 'error',
18
+ 'no-unused-vars': 'off',
19
+ 'object-shorthand': ['error', 'always'],
20
+ 'react/jsx-no-undef': 'error',
21
+ 'react/prop-types': 'off',
22
+ }
23
+
24
+ export default defineConfig([
25
+ prettierConfig,
26
+ {
27
+ ignores: ['build/**'],
28
+ plugins: {
29
+ import: esImport,
30
+ react: esReact,
31
+ },
32
+ languageOptions: {
33
+ ecmaVersion: 'latest',
34
+ sourceType: 'module',
35
+ globals: {
36
+ ...globals.browser,
37
+ ...globals.node,
38
+ ...globals.jest,
39
+ },
40
+ },
41
+ rules: {
42
+ ...defaultFormattingRules,
43
+ },
44
+ settings: {
45
+ react: {
46
+ version: 'detect',
47
+ },
48
+ },
49
+ },
50
+ {
51
+ files: ['**/*.ts', '**/*.tsx'],
52
+ plugins: {
53
+ '@typescript-eslint': esTypescript,
54
+ },
55
+ languageOptions: {
56
+ parser: esParser,
57
+ },
58
+ rules: {
59
+ '@typescript-eslint/no-unused-vars': [
60
+ 'error',
61
+ {
62
+ argsIgnorePattern: '^_',
63
+ varsIgnorePattern: '^_',
64
+ caughtErrorsIgnorePattern: '^_',
65
+ },
66
+ ],
67
+ '@typescript-eslint/no-empty-interface': 0,
68
+ // TODO: Remove this if we can; it isn't a good rule to squash.
69
+ // Sometimes this is fine, but sometimes it masks a compile error.
70
+ '@typescript-eslint/ban-ts-ignore': 0,
71
+ '@typescript-eslint/no-empty-function': 0,
72
+ '@typescript-eslint/explicit-function-return-type': 0,
73
+ '@typescript-eslint/no-explicit-any': 0,
74
+ },
75
+ },
76
+ {
77
+ files: ['*.js'],
78
+ plugins: {
79
+ '@typescript-eslint': esTypescript,
80
+ },
81
+ rules: Object.assign(esImport.rules),
82
+ },
83
+ ])
package/package.json ADDED
@@ -0,0 +1,88 @@
1
+ {
2
+ "name": "@neurodevs/eslint-config-ndx",
3
+ "version": "0.0.1",
4
+ "description": "ESLint flat-config preset for modern Node.js + TypeScript projects",
5
+ "keywords": [
6
+ "nodejs",
7
+ "typescript",
8
+ "tdd",
9
+ "eslint"
10
+ ],
11
+ "license": "MIT",
12
+ "author": "Eric Yates <hello@ericthecurious.com>",
13
+ "homepage": "https://github.com/neurodevs/eslint-config-ndx",
14
+ "repository": {
15
+ "type": "git",
16
+ "url": "git+https://github.com/neurodevs/eslint-config-ndx.git"
17
+ },
18
+ "bugs": {
19
+ "url": "https://github.com/neurodevs/eslint-config-ndx/issues"
20
+ },
21
+ "main": "build/index.js",
22
+ "scripts": {
23
+ "build.ci": "yarn run build.tsc && yarn run build.resolve-paths && yarn run lint",
24
+ "build.dev": "yarn run build.tsc --sourceMap ; yarn run resolve-paths.lint",
25
+ "build.copy-files": "mkdir -p build && rsync -avzq --exclude='*.ts' ./src/ ./build/",
26
+ "build.resolve-paths": "resolve-path-aliases --target build --patterns '**/*.js,**/*.d.ts'",
27
+ "build.tsc": "yarn run build.copy-files && tsc",
28
+ "clean": "yarn run clean.build",
29
+ "clean.all": "yarn run clean.dependencies && yarn run clean.build",
30
+ "clean.build": "rm -rf build/",
31
+ "clean.dependencies": "rm -rf node_modules/ package-lock.json yarn.lock",
32
+ "fix.lint": "eslint --fix --cache '**/*.ts'",
33
+ "lint": "eslint --cache '**/*.ts'",
34
+ "lint.tsc": "tsc -p . --noEmit",
35
+ "post.watch.build": "yarn run build.copy-files && yarn run build.resolve-paths",
36
+ "rebuild": "yarn run clean.all && yarn install && yarn run build.dev",
37
+ "update.dependencies": "yarn run clean.dependencies && yarn",
38
+ "resolve-paths.lint": "yarn run build.resolve-paths ; yarn run lint",
39
+ "test": "jest",
40
+ "watch.build.dev": "tsc-watch --sourceMap --onCompilationComplete 'yarn run post.watch.build'",
41
+ "watch.rebuild": "yarn run clean.all && yarn install && yarn run watch.build.dev",
42
+ "watch.tsc": "tsc -w"
43
+ },
44
+ "dependencies": {},
45
+ "devDependencies": {
46
+ "@sprucelabs/jest-json-reporter": "^10.0.25",
47
+ "@sprucelabs/resolve-path-aliases": "^4.0.17",
48
+ "@sprucelabs/test": "^11.1.4",
49
+ "@sprucelabs/test-utils": "^7.2.12",
50
+ "@types/node": "^25.3.0",
51
+ "@typescript-eslint/eslint-plugin": "^8.56.0",
52
+ "@typescript-eslint/parser": "^8.56.0",
53
+ "chokidar-cli": "^3.0.0",
54
+ "concurrently": "^9.2.1",
55
+ "eslint": "^9.39.2",
56
+ "eslint-config-prettier": "^10.1.8",
57
+ "eslint-plugin-flowtype": "^8.0.3",
58
+ "eslint-plugin-import": "^2.32.0",
59
+ "eslint-plugin-react": "^7.37.5",
60
+ "jest": "^30.2.0",
61
+ "jest-circus": "^30.2.0",
62
+ "prettier": "^3.8.1",
63
+ "ts-node": "^10.9.2",
64
+ "tsc-watch": "^7.2.0",
65
+ "typescript": "^5.9.3"
66
+ },
67
+ "skill": {
68
+ "namespace": "eslint-config-ndx"
69
+ },
70
+ "jest": {
71
+ "testRunner": "jest-circus/runner",
72
+ "maxWorkers": 4,
73
+ "testTimeout": 120000,
74
+ "testEnvironment": "node",
75
+ "testPathIgnorePatterns": [
76
+ "<rootDir>/tmp/",
77
+ "<rootDir>/src/",
78
+ "<rootDir>/node_modules/",
79
+ "<rootDir>/build/__tests__/testDirsAndFiles/"
80
+ ],
81
+ "testMatch": [
82
+ "**/__tests__/**/*.test.js?(x)"
83
+ ],
84
+ "moduleNameMapper": {
85
+ "^#spruce/(.*)$": "<rootDir>/build/.spruce/$1"
86
+ }
87
+ }
88
+ }
@@ -0,0 +1,8 @@
1
+ {
2
+ "skipped": [
3
+ "skill"
4
+ ],
5
+ "installed": [
6
+ "test"
7
+ ]
8
+ }
@@ -0,0 +1,83 @@
1
+ import globals from 'globals'
2
+
3
+ import { defineConfig } from 'eslint/config'
4
+ import prettierConfig from 'eslint-config-prettier'
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
+ const defaultFormattingRules = {
13
+ curly: 'error',
14
+ 'no-console': 'off',
15
+ 'no-undef': 'off',
16
+ 'no-var': 'error',
17
+ 'no-unreachable': 'error',
18
+ 'no-unused-vars': 'off',
19
+ 'object-shorthand': ['error', 'always'],
20
+ 'react/jsx-no-undef': 'error',
21
+ 'react/prop-types': 'off',
22
+ }
23
+
24
+ export default defineConfig([
25
+ prettierConfig,
26
+ {
27
+ ignores: ['build/**'],
28
+ plugins: {
29
+ import: esImport,
30
+ react: esReact,
31
+ },
32
+ languageOptions: {
33
+ ecmaVersion: 'latest',
34
+ sourceType: 'module',
35
+ globals: {
36
+ ...globals.browser,
37
+ ...globals.node,
38
+ ...globals.jest,
39
+ },
40
+ },
41
+ rules: {
42
+ ...defaultFormattingRules,
43
+ },
44
+ settings: {
45
+ react: {
46
+ version: 'detect',
47
+ },
48
+ },
49
+ },
50
+ {
51
+ files: ['**/*.ts', '**/*.tsx'],
52
+ plugins: {
53
+ '@typescript-eslint': esTypescript,
54
+ },
55
+ languageOptions: {
56
+ parser: esParser,
57
+ },
58
+ rules: {
59
+ '@typescript-eslint/no-unused-vars': [
60
+ 'error',
61
+ {
62
+ argsIgnorePattern: '^_',
63
+ varsIgnorePattern: '^_',
64
+ caughtErrorsIgnorePattern: '^_',
65
+ },
66
+ ],
67
+ '@typescript-eslint/no-empty-interface': 0,
68
+ // TODO: Remove this if we can; it isn't a good rule to squash.
69
+ // Sometimes this is fine, but sometimes it masks a compile error.
70
+ '@typescript-eslint/ban-ts-ignore': 0,
71
+ '@typescript-eslint/no-empty-function': 0,
72
+ '@typescript-eslint/explicit-function-return-type': 0,
73
+ '@typescript-eslint/no-explicit-any': 0,
74
+ },
75
+ },
76
+ {
77
+ files: ['*.js'],
78
+ plugins: {
79
+ '@typescript-eslint': esTypescript,
80
+ },
81
+ rules: Object.assign(esImport.rules),
82
+ },
83
+ ])
package/src/index.ts ADDED
@@ -0,0 +1 @@
1
+ export { default } from './eslint.config.mjs'
package/tsconfig.json ADDED
@@ -0,0 +1,28 @@
1
+ {
2
+ "compilerOptions": {
3
+ "module": "nodenext",
4
+ "moduleResolution": "nodenext",
5
+ "target": "ES2022",
6
+ "lib": ["ES2022"],
7
+ "types": ["node"],
8
+ "baseUrl": "src",
9
+ "outDir": "build",
10
+ "sourceMap": false,
11
+ "strict": true,
12
+ "noImplicitAny": true,
13
+ "noImplicitReturns": true,
14
+ "noUnusedLocals": true,
15
+ "forceConsistentCasingInFileNames": true,
16
+ "declaration": true,
17
+ "skipLibCheck": true,
18
+ "esModuleInterop": true,
19
+ "moduleDetection": "force",
20
+ "allowJs": true,
21
+ "resolveJsonModule": true,
22
+ "experimentalDecorators": true
23
+ },
24
+ "include": [
25
+ "./src/*.ts",
26
+ "./src/**/*.ts"
27
+ ]
28
+ }