@aiou/eslint-config 1.0.4 → 1.0.5

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 CHANGED
@@ -111,7 +111,7 @@ const imports = () => {
111
111
  "import/no-unresolved": "off",
112
112
  "import/no-absolute-path": "off",
113
113
  // Not allowed import devDependencies
114
- "import/no-extraneous-dependencies": "error",
114
+ "import/no-extraneous-dependencies": ["error", { devDependencies: false }],
115
115
  // Not allow import { default as named }
116
116
  "import/no-named-default": "warn",
117
117
  "unused-imports/no-unused-imports": "error",
@@ -4174,8 +4174,13 @@ const typescript = () => {
4174
4174
  * 1. https://ncjamieson.com/dont-export-const-enums/
4175
4175
  * 2. https://www.huy.rocks/everyday/02-24-2022-typescript-enums-at-runtime-and-tree-shaking
4176
4176
  */
4177
- "etc/no-const-enum": "error",
4178
- "etc/no-enum": "error",
4177
+ "no-restricted-syntax": [
4178
+ "error",
4179
+ {
4180
+ selector: "TSEnumDeclaration",
4181
+ message: "Don't declare enums"
4182
+ }
4183
+ ],
4179
4184
  // required tsconfig.json
4180
4185
  // 'etc/no-misused-generics': 'error',
4181
4186
  // Overrides JS
package/dist/index.mjs CHANGED
@@ -109,7 +109,7 @@ const imports = () => {
109
109
  "import/no-unresolved": "off",
110
110
  "import/no-absolute-path": "off",
111
111
  // Not allowed import devDependencies
112
- "import/no-extraneous-dependencies": "error",
112
+ "import/no-extraneous-dependencies": ["error", { devDependencies: false }],
113
113
  // Not allow import { default as named }
114
114
  "import/no-named-default": "warn",
115
115
  "unused-imports/no-unused-imports": "error",
@@ -4172,8 +4172,13 @@ const typescript = () => {
4172
4172
  * 1. https://ncjamieson.com/dont-export-const-enums/
4173
4173
  * 2. https://www.huy.rocks/everyday/02-24-2022-typescript-enums-at-runtime-and-tree-shaking
4174
4174
  */
4175
- "etc/no-const-enum": "error",
4176
- "etc/no-enum": "error",
4175
+ "no-restricted-syntax": [
4176
+ "error",
4177
+ {
4178
+ selector: "TSEnumDeclaration",
4179
+ message: "Don't declare enums"
4180
+ }
4181
+ ],
4177
4182
  // required tsconfig.json
4178
4183
  // 'etc/no-misused-generics': 'error',
4179
4184
  // Overrides JS
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aiou/eslint-config",
3
- "version": "1.0.4",
3
+ "version": "1.0.5",
4
4
  "description": "eslint config for aiou template",
5
5
  "keywords": [],
6
6
  "license": "MIT",