@will-stone/eslint-config 0.0.3 → 0.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/CHANGELOG.md CHANGED
@@ -1,5 +1,18 @@
1
1
  # @will-stone/eslint-config
2
2
 
3
+ ## 0.0.5
4
+
5
+ ### Patch Changes
6
+
7
+ - 4f97233: Fixed requiring use-strict in files that don't need it.
8
+
9
+ ## 0.0.4
10
+
11
+ ### Patch Changes
12
+
13
+ - Fixed no browser globals available. Puting these in all files for now, but
14
+ maybe should be based on something else?
15
+
3
16
  ## 0.0.3
4
17
 
5
18
  ### Patch Changes
package/eslint-config.js CHANGED
@@ -84,7 +84,10 @@ export default [
84
84
  {
85
85
  files: ['**/*.{js,cjs,mjs,jsx,ts,tsx}'],
86
86
  languageOptions: {
87
- globals: isNode && globals.node,
87
+ globals: {
88
+ ...globals.browser,
89
+ ...(isNode && globals.node),
90
+ },
88
91
  },
89
92
  plugins: {
90
93
  'import': importPlugin,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@will-stone/eslint-config",
3
- "version": "0.0.3",
3
+ "version": "0.0.5",
4
4
  "description": "Will Stone's ESLint config, using the Flat Config style.",
5
5
  "keywords": [
6
6
  "ESLint"
package/rules/built-in.js CHANGED
@@ -642,9 +642,8 @@ export default {
642
642
  // All comments must have a space after the //
643
643
  // This also allows /// reference comments
644
644
  'spaced-comment': ['warn', 'always', { markers: ['/'] }],
645
- // As modules are used nearly all of the time, this probably isn't required,
646
- // but leaving it on just in case.
647
- 'strict': 'warn',
645
+ // Generally gets in the way as it's difficult to know when this may be required.
646
+ 'strict': 'off',
648
647
  // Using description promotes easier debugging.
649
648
  // ✅ var foo = Symbol("some description")
650
649
  'symbol-description': 'error',