@will-stone/eslint-config 0.0.2 → 0.0.4
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 +13 -0
- package/eslint-config.js +8 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# @will-stone/eslint-config
|
|
2
2
|
|
|
3
|
+
## 0.0.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Fixed no browser globals available. Puting these in all files for now, but
|
|
8
|
+
maybe should be based on something else?
|
|
9
|
+
|
|
10
|
+
## 0.0.3
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- fd613ec: Fixed cannot find TS plugin.
|
|
15
|
+
|
|
3
16
|
## 0.0.2
|
|
4
17
|
|
|
5
18
|
### Patch Changes
|
package/eslint-config.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import fs from 'node:fs'
|
|
2
2
|
|
|
3
|
+
import tsPlugin from '@typescript-eslint/eslint-plugin'
|
|
3
4
|
import tsParser from '@typescript-eslint/parser'
|
|
4
5
|
import importPlugin from 'eslint-plugin-import'
|
|
5
6
|
import jestPlugin from 'eslint-plugin-jest'
|
|
@@ -83,7 +84,10 @@ export default [
|
|
|
83
84
|
{
|
|
84
85
|
files: ['**/*.{js,cjs,mjs,jsx,ts,tsx}'],
|
|
85
86
|
languageOptions: {
|
|
86
|
-
globals:
|
|
87
|
+
globals: {
|
|
88
|
+
...globals.browser,
|
|
89
|
+
...(isNode && globals.node),
|
|
90
|
+
},
|
|
87
91
|
},
|
|
88
92
|
plugins: {
|
|
89
93
|
'import': importPlugin,
|
|
@@ -109,6 +113,9 @@ export default [
|
|
|
109
113
|
languageOptions: {
|
|
110
114
|
parser: tsParser,
|
|
111
115
|
},
|
|
116
|
+
plugins: {
|
|
117
|
+
'@typescript-eslint': tsPlugin,
|
|
118
|
+
},
|
|
112
119
|
rules: tsRules,
|
|
113
120
|
},
|
|
114
121
|
|