@foray1010/eslint-config 7.7.0 → 7.7.2

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
@@ -3,6 +3,19 @@
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
+ ## [7.7.2](https://github.com/foray1010/common-presets/compare/@foray1010/eslint-config@7.7.1...@foray1010/eslint-config@7.7.2) (2022-10-01)
7
+
8
+ ### Bug Fixes
9
+
10
+ - **eslint-config:** allow **dirname and **filename in node.js ([14bf0bd](https://github.com/foray1010/common-presets/commit/14bf0bdbc29e20de085ea772529a415633980f22))
11
+
12
+ ## [7.7.1](https://github.com/foray1010/common-presets/compare/@foray1010/eslint-config@7.7.0...@foray1010/eslint-config@7.7.1) (2022-10-01)
13
+
14
+ ### Bug Fixes
15
+
16
+ - **eslint-config:** allow commonjs globals as we haven't moved to es modules ([08ab8d0](https://github.com/foray1010/common-presets/commit/08ab8d09244e2314de611a4fb1fda8552a958515))
17
+ - **eslint-config:** allow webextensions globals in frontend ([7624ed5](https://github.com/foray1010/common-presets/commit/7624ed5f5e2c710a5d1abbb831b476190aca32d5))
18
+
6
19
  ## [7.7.0](https://github.com/foray1010/common-presets/compare/@foray1010/eslint-config@7.6.1...@foray1010/eslint-config@7.7.0) (2022-10-01)
7
20
 
8
21
  ### Features
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": "7.7.0",
4
+ "version": "7.7.2",
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": {
@@ -56,5 +56,5 @@
56
56
  "publishConfig": {
57
57
  "access": "public"
58
58
  },
59
- "gitHead": "8a9de7e7659db21109b2b328116706ff9e9d48ec"
59
+ "gitHead": "1fae3d076965b166094c89e62957cdb81e78338e"
60
60
  }
package/presets/base.js CHANGED
@@ -177,6 +177,10 @@ module.exports = {
177
177
  '@typescript-eslint/eslint-plugin',
178
178
  'eslint-plugin-functional',
179
179
  ],
180
+ env: {
181
+ // allow commonjs globals as we haven't moved to es modules
182
+ commonjs: true,
183
+ },
180
184
  rules: {
181
185
  // extend existing rule
182
186
  '@typescript-eslint/ban-types': [
@@ -8,6 +8,7 @@ module.exports = {
8
8
  plugins: ['eslint-plugin-compat'],
9
9
  env: {
10
10
  browser: true,
11
+ webextensions: true,
11
12
  },
12
13
  globals: {
13
14
  // keep it until webpack has an official way to define env: https://github.com/webpack/webpack/issues/15833
package/presets/node.js CHANGED
@@ -4,6 +4,10 @@
4
4
  module.exports = {
5
5
  plugins: ['eslint-plugin-n'],
6
6
  globals: {
7
+ // used in commonjs and typescript
8
+ __dirname: 'readonly',
9
+ // used in commonjs and typescript
10
+ __filename: 'readonly',
7
11
  // hack to mute no-undef error, and show n/prefer-global/buffer error instead
8
12
  Buffer: 'readonly',
9
13
  // hack to mute no-undef error, and show n/prefer-global/process error instead