@aiou/eslint-config 1.3.0 → 1.5.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/dist/index.cjs +6 -0
- package/dist/index.mjs +6 -0
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -114,6 +114,9 @@ const imports = () => {
|
|
|
114
114
|
"import/no-mutable-exports": "error",
|
|
115
115
|
"import/no-unresolved": "off",
|
|
116
116
|
"import/no-absolute-path": "off",
|
|
117
|
+
"import/dynamic-import-chunkname": [2, {
|
|
118
|
+
allowEmpty: true
|
|
119
|
+
}],
|
|
117
120
|
// Not allowed import devDependencies
|
|
118
121
|
"import/no-extraneous-dependencies": ["error", { devDependencies: false }],
|
|
119
122
|
// Not allow import { default as named }
|
|
@@ -4305,6 +4308,9 @@ const typescript = () => {
|
|
|
4305
4308
|
"@typescript-eslint/sort-type-constituents": "error",
|
|
4306
4309
|
"@typescript-eslint/unbound-method": "off",
|
|
4307
4310
|
"@typescript-eslint/prefer-for-of": "error",
|
|
4311
|
+
// When .ts files compiled to .mjs, will throw require is not found
|
|
4312
|
+
// use createRequire instead
|
|
4313
|
+
"@typescript-eslint/no-require-imports": "error",
|
|
4308
4314
|
// https://www.npmjs.com/package/eslint-plugin-etc
|
|
4309
4315
|
"etc/no-t": "error",
|
|
4310
4316
|
/**
|
package/dist/index.mjs
CHANGED
|
@@ -112,6 +112,9 @@ const imports = () => {
|
|
|
112
112
|
"import/no-mutable-exports": "error",
|
|
113
113
|
"import/no-unresolved": "off",
|
|
114
114
|
"import/no-absolute-path": "off",
|
|
115
|
+
"import/dynamic-import-chunkname": [2, {
|
|
116
|
+
allowEmpty: true
|
|
117
|
+
}],
|
|
115
118
|
// Not allowed import devDependencies
|
|
116
119
|
"import/no-extraneous-dependencies": ["error", { devDependencies: false }],
|
|
117
120
|
// Not allow import { default as named }
|
|
@@ -4303,6 +4306,9 @@ const typescript = () => {
|
|
|
4303
4306
|
"@typescript-eslint/sort-type-constituents": "error",
|
|
4304
4307
|
"@typescript-eslint/unbound-method": "off",
|
|
4305
4308
|
"@typescript-eslint/prefer-for-of": "error",
|
|
4309
|
+
// When .ts files compiled to .mjs, will throw require is not found
|
|
4310
|
+
// use createRequire instead
|
|
4311
|
+
"@typescript-eslint/no-require-imports": "error",
|
|
4306
4312
|
// https://www.npmjs.com/package/eslint-plugin-etc
|
|
4307
4313
|
"etc/no-t": "error",
|
|
4308
4314
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aiou/eslint-config",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.5.0",
|
|
4
4
|
"description": "eslint config for aiou template",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"license": "MIT",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"eslint-define-config": "^2.0.0",
|
|
37
37
|
"eslint-plugin-eslint-comments": "^3.2.0",
|
|
38
38
|
"eslint-plugin-etc": "^2.0.3",
|
|
39
|
-
"eslint-plugin-i": "^2.
|
|
39
|
+
"eslint-plugin-i": "^2.29.1",
|
|
40
40
|
"eslint-plugin-import-newlines": "^1.3.0",
|
|
41
41
|
"eslint-plugin-jsonc": "^2.5.0",
|
|
42
42
|
"eslint-plugin-markdown": "^3.0.0",
|