@foray1010/eslint-config 9.0.0 → 9.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/CHANGELOG.md +6 -0
- package/package.json +2 -2
- package/presets/base.cjs +1 -5
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,12 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [9.0.1](https://github.com/foray1010/common-presets/compare/@foray1010/eslint-config@9.0.0...@foray1010/eslint-config@9.0.1) (2022-11-07)
|
|
7
|
+
|
|
8
|
+
### Reverts
|
|
9
|
+
|
|
10
|
+
- **eslint-config:** does not report error when importing ts files without extension ([faeee28](https://github.com/foray1010/common-presets/commit/faeee281cd40ba6b22835ae5b8c9cd6d69d3815e))
|
|
11
|
+
|
|
6
12
|
## [9.0.0](https://github.com/foray1010/common-presets/compare/@foray1010/eslint-config@8.0.1...@foray1010/eslint-config@9.0.0) (2022-11-07)
|
|
7
13
|
|
|
8
14
|
### ⚠ BREAKING CHANGES
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/package",
|
|
3
3
|
"name": "@foray1010/eslint-config",
|
|
4
|
-
"version": "9.0.
|
|
4
|
+
"version": "9.0.1",
|
|
5
5
|
"homepage": "https://github.com/foray1010/common-presets/tree/master/packages/eslint-config#readme",
|
|
6
6
|
"bugs": "https://github.com/foray1010/common-presets/issues",
|
|
7
7
|
"repository": {
|
|
@@ -59,5 +59,5 @@
|
|
|
59
59
|
"publishConfig": {
|
|
60
60
|
"access": "public"
|
|
61
61
|
},
|
|
62
|
-
"gitHead": "
|
|
62
|
+
"gitHead": "fb5476d1436d6a3c2295fa4753999c7e0bd00133"
|
|
63
63
|
}
|
package/presets/base.cjs
CHANGED
|
@@ -71,7 +71,6 @@ module.exports = {
|
|
|
71
71
|
'func-names': ['error', 'as-needed'],
|
|
72
72
|
// this rule doesn't support commonjs, some dependencies are using commonjs
|
|
73
73
|
'import/default': 'off',
|
|
74
|
-
// use with `n/file-extension-in-import`
|
|
75
74
|
// enforce extensions for both cjs and esm
|
|
76
75
|
'import/extensions': [
|
|
77
76
|
'error',
|
|
@@ -79,7 +78,7 @@ module.exports = {
|
|
|
79
78
|
'always',
|
|
80
79
|
{
|
|
81
80
|
pattern: {
|
|
82
|
-
//
|
|
81
|
+
// eslint-plugin-import does not support checking es modules in typescript files
|
|
83
82
|
cts: 'never',
|
|
84
83
|
mts: 'never',
|
|
85
84
|
ts: 'never',
|
|
@@ -205,7 +204,6 @@ module.exports = {
|
|
|
205
204
|
'@typescript-eslint/eslint-plugin',
|
|
206
205
|
'eslint-plugin-deprecation',
|
|
207
206
|
'eslint-plugin-functional',
|
|
208
|
-
'eslint-plugin-n',
|
|
209
207
|
],
|
|
210
208
|
rules: {
|
|
211
209
|
// extend existing rule
|
|
@@ -316,8 +314,6 @@ module.exports = {
|
|
|
316
314
|
],
|
|
317
315
|
// forbid unnecessary callback wrapper
|
|
318
316
|
'functional/prefer-tacit': 'error',
|
|
319
|
-
// use with `import/extensions` because it doesn't work with TypeScript
|
|
320
|
-
'n/file-extension-in-import': ['error', 'always'],
|
|
321
317
|
'no-restricted-syntax': [
|
|
322
318
|
'error',
|
|
323
319
|
{
|