@lionstone-digital/eslint-config 0.0.7 → 0.0.9
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/package.json +7 -7
- package/src/core.js +4 -2
- package/src/index.js +2 -7
- package/src/prettier.js +2 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lionstone-digital/eslint-config",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.9",
|
|
4
4
|
"description": "Helpful eslint config for your projects",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"eslint",
|
|
@@ -25,18 +25,18 @@
|
|
|
25
25
|
"src"
|
|
26
26
|
],
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@eslint/js": "^9.
|
|
29
|
-
"@stylistic/eslint-plugin": "^5.
|
|
30
|
-
"eslint": "^9.
|
|
28
|
+
"@eslint/js": "^9.36.0",
|
|
29
|
+
"@stylistic/eslint-plugin": "^5.4.0",
|
|
30
|
+
"eslint": "^9.36.0",
|
|
31
31
|
"eslint-config-prettier": "^10.1.8",
|
|
32
32
|
"eslint-plugin-import-x": "^4.16.1",
|
|
33
33
|
"eslint-plugin-no-relative-import-paths": "^1.6.1",
|
|
34
34
|
"eslint-plugin-prettier": "^5.5.4",
|
|
35
|
-
"globals": "^16.
|
|
35
|
+
"globals": "^16.4.0"
|
|
36
36
|
},
|
|
37
37
|
"peerDependencies": {
|
|
38
|
-
"eslint": ">= 9.
|
|
39
|
-
"prettier": ">= 3.6.
|
|
38
|
+
"eslint": ">= 9.35.0",
|
|
39
|
+
"prettier": ">= 3.6.2"
|
|
40
40
|
},
|
|
41
41
|
"publishConfig": {
|
|
42
42
|
"access": "public"
|
package/src/core.js
CHANGED
|
@@ -2,9 +2,10 @@ import eslint from '@eslint/js'
|
|
|
2
2
|
import stylistic from '@stylistic/eslint-plugin'
|
|
3
3
|
import eslintImportX from 'eslint-plugin-import-x'
|
|
4
4
|
import eslintNoRelativeImportPaths from 'eslint-plugin-no-relative-import-paths'
|
|
5
|
+
import { defineConfig } from 'eslint/config'
|
|
5
6
|
import globals from 'globals'
|
|
6
7
|
|
|
7
|
-
export default
|
|
8
|
+
export default defineConfig(
|
|
8
9
|
// Base
|
|
9
10
|
{
|
|
10
11
|
languageOptions: {
|
|
@@ -29,6 +30,7 @@ export default [
|
|
|
29
30
|
// For Imports
|
|
30
31
|
{
|
|
31
32
|
plugins: {
|
|
33
|
+
// @ts-expect-error Small type-mismatch, safe to ignore
|
|
32
34
|
'import-x': eslintImportX
|
|
33
35
|
},
|
|
34
36
|
settings: {
|
|
@@ -79,4 +81,4 @@ export default [
|
|
|
79
81
|
]
|
|
80
82
|
}
|
|
81
83
|
}
|
|
82
|
-
|
|
84
|
+
)
|
package/src/index.js
CHANGED
|
@@ -1,10 +1,5 @@
|
|
|
1
|
+
import { defineConfig } from 'eslint/config'
|
|
1
2
|
import coreConfig from './core.js'
|
|
2
3
|
import prettierConfig from './prettier.js'
|
|
3
4
|
|
|
4
|
-
export default
|
|
5
|
-
// Core
|
|
6
|
-
...coreConfig,
|
|
7
|
-
|
|
8
|
-
// For Prettier
|
|
9
|
-
...prettierConfig
|
|
10
|
-
]
|
|
5
|
+
export default defineConfig(coreConfig, prettierConfig)
|
package/src/prettier.js
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import eslintConfigPrettier from 'eslint-config-prettier'
|
|
2
2
|
import eslintPrettierRecommended from 'eslint-plugin-prettier/recommended'
|
|
3
|
+
import { defineConfig } from 'eslint/config'
|
|
3
4
|
|
|
4
|
-
|
|
5
|
-
* @type {import('eslint').Linter.Config[]}
|
|
6
|
-
*/
|
|
7
|
-
export default [eslintPrettierRecommended, eslintConfigPrettier]
|
|
5
|
+
export default defineConfig(eslintPrettierRecommended, eslintConfigPrettier)
|