@jgarber/eslint-config 1.1.0 → 1.1.1

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/README.md CHANGED
@@ -2,8 +2,7 @@
2
2
 
3
3
  Shareable [ESLint](https://eslint.org) configuration.
4
4
 
5
- > **Note**
6
- >
5
+ > [!IMPORTANT]\
7
6
  > As of v1.0.0, this shareable configuration uses ESLint's new "flat" configuration file format and, thus, may not be suitable for every project. See [the official documentation](https://eslint.org/docs/latest/use/configure/configuration-files-new) for details.
8
7
 
9
8
  ## Installation
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jgarber/eslint-config",
3
- "version": "1.1.0",
3
+ "version": "1.1.1",
4
4
  "description": "Shareable ESLint configuration.",
5
5
  "keywords": [
6
6
  "eslint",
@@ -22,15 +22,15 @@
22
22
  "node": ">=16.0.0"
23
23
  },
24
24
  "devDependencies": {
25
- "eslint": "^8.43.0",
25
+ "eslint": "^8.45.0",
26
26
  "eslint-config-standard": "^17.1.0",
27
27
  "globals": "^13.20.0",
28
- "jasmine": "^5.0.2"
28
+ "jasmine": "^5.1.0"
29
29
  },
30
30
  "peerDependencies": {
31
- "eslint": ">=8.43.0",
32
- "eslint-config-standard": ">=17.1.0",
33
- "globals": ">=13.20.0"
31
+ "eslint": ">=8.43",
32
+ "eslint-config-standard": ">=17.1",
33
+ "globals": ">=13.20"
34
34
  },
35
35
  "publishConfig": {
36
36
  "access": "public"
package/.editorconfig DELETED
@@ -1,10 +0,0 @@
1
- # EditorConfig is awesome: https://EditorConfig.org
2
- root = true
3
-
4
- [*]
5
- charset = utf-8
6
- end_of_line = lf
7
- insert_final_newline = true
8
- indent_size = 2
9
- indent_style = space
10
- trim_trailing_whitespace = true
@@ -1,15 +0,0 @@
1
- version: 2
2
-
3
- updates:
4
- - package-ecosystem: "github-actions"
5
- directory: "/"
6
- schedule:
7
- interval: "weekly"
8
- assignees:
9
- - "jgarber623"
10
- - package-ecosystem: "npm"
11
- directory: "/"
12
- schedule:
13
- interval: "monthly"
14
- assignees:
15
- - "jgarber623"
@@ -1,27 +0,0 @@
1
- name: CI
2
-
3
- on: push
4
-
5
- jobs:
6
- lint:
7
- name: Lint files
8
- runs-on: ubuntu-20.04
9
- steps:
10
- - uses: actions/checkout@v3
11
- - uses: actions/setup-node@v3
12
- with:
13
- node-version-file: ".nvmrc"
14
- cache: npm
15
- - run: npm ci
16
- - run: npm run lint
17
- test:
18
- name: Test files
19
- runs-on: ubuntu-20.04
20
- steps:
21
- - uses: actions/checkout@v3
22
- - uses: actions/setup-node@v3
23
- with:
24
- node-version-file: ".nvmrc"
25
- cache: npm
26
- - run: npm ci
27
- - run: npm test
package/.nvmrc DELETED
@@ -1 +0,0 @@
1
- lts/*
package/eslint.config.js DELETED
@@ -1,15 +0,0 @@
1
- const globals = require('globals');
2
-
3
- const config = require('./index');
4
-
5
- module.exports = [
6
- ...config,
7
- {
8
- files: ['spec/**/*[sS]pec.?(m)js'],
9
- languageOptions: {
10
- globals: {
11
- ...globals.jasmine
12
- }
13
- }
14
- }
15
- ];
package/spec/indexSpec.js DELETED
@@ -1,24 +0,0 @@
1
- const { FlatESLint } = require('eslint/use-at-your-own-risk');
2
-
3
- const config = require('../index');
4
-
5
- it('exports an Array', () => {
6
- expect(Array.isArray(config)).toBe(true);
7
- });
8
-
9
- it('loads the config and validates correct syntax', async () => {
10
- const eslint = new FlatESLint({ baseConfig: config });
11
- const [results] = await eslint.lintText(';\n');
12
-
13
- expect(results.errorCount).toEqual(0);
14
- });
15
-
16
- it('loads the config and invalidates incorrect syntax', async () => {
17
- const eslint = new FlatESLint({ baseConfig: config });
18
- const [results] = await eslint.lintText('(() => {}) ()\n');
19
-
20
- const ruleIds = results.messages.map(({ ruleId }) => ruleId);
21
-
22
- expect(results.errorCount).toEqual(2);
23
- expect(ruleIds).toEqual(jasmine.arrayContaining(['func-call-spacing', 'semi']));
24
- });
@@ -1,14 +0,0 @@
1
- {
2
- "spec_dir": "spec",
3
- "spec_files": [
4
- "**/*[sS]pec.?(m)js"
5
- ],
6
- "helpers": [
7
- "helpers/**/*.?(m)js"
8
- ],
9
- "env": {
10
- "failSpecWithNoExpectations": true,
11
- "random": true,
12
- "stopSpecOnExpectationFailure": false
13
- }
14
- }