@tpluscode/eslint-config 1.0.2 → 2.0.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.
@@ -1,5 +1,5 @@
1
1
  {
2
- "$schema": "https://unpkg.com/@changesets/config@1.5.0/schema.json",
2
+ "$schema": "https://unpkg.com/@changesets/config@4.0.0-next.5/schema.json",
3
3
  "changelog": "@changesets/cli/changelog",
4
4
  "commit": false,
5
5
  "linked": [],
package/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # Changelog
2
2
 
3
+ ## 2.0.0
4
+ ### Major Changes
5
+
6
+ - fada491: Added eslint stylistic plugin
7
+
8
+ ## 1.1.0
9
+ ### Minor Changes
10
+
11
+ - 36b6982: Ignore `import/no-extraneous-dependencies` in eslint config files
12
+
13
+ ### Patch Changes
14
+
15
+ - a9621ad: Added proper exports to `package.json`
16
+
3
17
  ## 1.0.2
4
18
 
5
19
  ### Patch Changes
package/js.js CHANGED
@@ -7,6 +7,7 @@ import n from 'eslint-plugin-n'
7
7
  import promise from 'eslint-plugin-promise'
8
8
  import rdf from 'eslint-plugin-rdf'
9
9
  import unusedImports from 'eslint-plugin-unused-imports'
10
+ import stylistic from '@stylistic/eslint-plugin'
10
11
 
11
12
  const require = createRequire(import.meta.url)
12
13
  const requireExtensions = require('eslint-plugin-require-extensions')
@@ -17,6 +18,10 @@ function rulesFrom(config) {
17
18
 
18
19
  export default [
19
20
  js.configs.recommended,
21
+ {
22
+ plugins: { '@stylistic': stylistic },
23
+ },
24
+ stylistic.configs['recommended'],
20
25
  {
21
26
  files: ['**/*.{js,cjs,mjs}'],
22
27
  languageOptions: {
@@ -28,7 +33,7 @@ export default [
28
33
  },
29
34
  },
30
35
  plugins: {
31
- import: importPlugin,
36
+ 'import': importPlugin,
32
37
  mocha,
33
38
  n,
34
39
  promise,
@@ -49,7 +54,7 @@ export default [
49
54
  ...rulesFrom(requireExtensions.configs.recommended),
50
55
  ...rulesFrom(mocha.configs.recommended),
51
56
 
52
- indent: ['error', 2],
57
+ 'indent': ['error', 2],
53
58
  'no-console': 'error',
54
59
  'import/no-unresolved': 'error',
55
60
  'import/extensions': 'off',
@@ -122,4 +127,10 @@ export default [
122
127
  'n/no-unpublished-require': 'off',
123
128
  },
124
129
  },
130
+ {
131
+ files: ['eslint.config.*'],
132
+ rules: {
133
+ 'import/no-extraneous-dependencies': 'off',
134
+ },
135
+ },
125
136
  ]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tpluscode/eslint-config",
3
- "version": "1.0.2",
3
+ "version": "2.0.0",
4
4
  "type": "module",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -8,11 +8,16 @@
8
8
  "test": "eslint .",
9
9
  "release": "changeset publish"
10
10
  },
11
+ "exports": {
12
+ "./js": "./js.js",
13
+ ".": "./index.js"
14
+ },
11
15
  "engines": {
12
16
  "node": ">=18.18"
13
17
  },
14
18
  "dependencies": {
15
19
  "@eslint/js": ">=9 <11",
20
+ "@stylistic/eslint-plugin": "^5.10.0",
16
21
  "globals": "^15.0.0"
17
22
  },
18
23
  "peerDependencies": {
@@ -31,7 +36,7 @@
31
36
  "eslint-import-resolver-typescript": "^3.0.0"
32
37
  },
33
38
  "devDependencies": {
34
- "@changesets/cli": "^2.31.0",
39
+ "@changesets/cli": "^3.0.0-next.5",
35
40
  "@typescript-eslint/eslint-plugin": "^8.0.0",
36
41
  "@typescript-eslint/parser": "^8.0.0",
37
42
  "eslint": "^9",
@@ -43,8 +48,8 @@
43
48
  "eslint-plugin-rdf": "^2.0.1",
44
49
  "eslint-plugin-require-extensions": "^0.1.3",
45
50
  "eslint-plugin-unused-imports": "^4.4.1",
46
- "lint-staged": "^15.2.7",
47
- "husky": "^9.0.11"
51
+ "husky": "^9.0.11",
52
+ "lint-staged": "^15.2.7"
48
53
  },
49
54
  "repository": {
50
55
  "type": "git",