eslint-config-tamia 9.0.0 → 9.0.2
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/eslint.config.mjs +3 -0
- package/index.mjs +6 -0
- package/legacy.mjs +26 -0
- package/package.json +6 -5
- package/react.mjs +22 -0
- package/typescript-react.mjs +14 -0
- package/typescript.mjs +7 -0
package/index.mjs
ADDED
package/legacy.mjs
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import js from '@eslint/js';
|
|
2
|
+
import globals from 'globals';
|
|
3
|
+
import bestPractices from './rules/best-practices.mjs';
|
|
4
|
+
import errors from './rules/errors.mjs';
|
|
5
|
+
import legacy from './rules/legacy.mjs';
|
|
6
|
+
import node from './rules/node.mjs';
|
|
7
|
+
import style from './rules/style.mjs';
|
|
8
|
+
import variables from './rules/variables.mjs';
|
|
9
|
+
|
|
10
|
+
/** @type { import("eslint").Linter.FlatConfig[] } */
|
|
11
|
+
export default [
|
|
12
|
+
js.configs.recommended,
|
|
13
|
+
...bestPractices,
|
|
14
|
+
...errors,
|
|
15
|
+
...legacy,
|
|
16
|
+
...node,
|
|
17
|
+
...style,
|
|
18
|
+
...variables,
|
|
19
|
+
{
|
|
20
|
+
languageOptions: {
|
|
21
|
+
globals: {
|
|
22
|
+
...globals.browser,
|
|
23
|
+
},
|
|
24
|
+
},
|
|
25
|
+
},
|
|
26
|
+
];
|
package/package.json
CHANGED
|
@@ -1,8 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-config-tamia",
|
|
3
3
|
"description": "Tâmia ESLint config",
|
|
4
|
-
"version": "9.0.
|
|
4
|
+
"version": "9.0.2",
|
|
5
|
+
"type": "module",
|
|
5
6
|
"main": "index.js",
|
|
7
|
+
"files": [
|
|
8
|
+
"rules",
|
|
9
|
+
"*.mjs"
|
|
10
|
+
],
|
|
6
11
|
"scripts": {
|
|
7
12
|
"pretest": "npm run lint",
|
|
8
13
|
"test": "npm run test:vitest",
|
|
@@ -14,10 +19,6 @@
|
|
|
14
19
|
"type": "git",
|
|
15
20
|
"url": "https://github.com/tamiadev/eslint-config-tamia"
|
|
16
21
|
},
|
|
17
|
-
"files": [
|
|
18
|
-
"rules",
|
|
19
|
-
"*.js"
|
|
20
|
-
],
|
|
21
22
|
"keywords": [
|
|
22
23
|
"eslintconfig",
|
|
23
24
|
"tamia"
|
package/react.mjs
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import legacy from './rules/legacy.mjs';
|
|
2
|
+
import es6 from './rules/es6.mjs';
|
|
3
|
+
import strict from './rules/strict.mjs';
|
|
4
|
+
import react from './rules/react.mjs';
|
|
5
|
+
|
|
6
|
+
/** @type { import("eslint").Linter.FlatConfig[] } */
|
|
7
|
+
export default [
|
|
8
|
+
...legacy,
|
|
9
|
+
...es6,
|
|
10
|
+
...strict,
|
|
11
|
+
...react,
|
|
12
|
+
{
|
|
13
|
+
languageOptions: {
|
|
14
|
+
parserOptions: {
|
|
15
|
+
ecmaVersion: 2024,
|
|
16
|
+
sourceType: 'module',
|
|
17
|
+
requireConfigFile: false,
|
|
18
|
+
},
|
|
19
|
+
},
|
|
20
|
+
rules: {},
|
|
21
|
+
},
|
|
22
|
+
];
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import typescript from './rules/typescript.mjs';
|
|
2
|
+
import react from './rules/react.mjs';
|
|
3
|
+
|
|
4
|
+
/** @type { import("eslint").Linter.FlatConfig[] } */
|
|
5
|
+
export default [
|
|
6
|
+
...typescript,
|
|
7
|
+
...react,
|
|
8
|
+
{
|
|
9
|
+
rules: {
|
|
10
|
+
// Disable generic rules that conflict with TypeScript
|
|
11
|
+
'react/prop-types': 'off',
|
|
12
|
+
},
|
|
13
|
+
},
|
|
14
|
+
];
|
package/typescript.mjs
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import legacy from './rules/legacy.mjs';
|
|
2
|
+
import es6 from './rules/es6.mjs';
|
|
3
|
+
import strict from './rules/strict.mjs';
|
|
4
|
+
import typescript from './rules/typescript.mjs';
|
|
5
|
+
|
|
6
|
+
/** @type { import("eslint").Linter.FlatConfig[] } */
|
|
7
|
+
export default [...legacy, ...es6, ...strict, ...typescript];
|