|
22 | 22 | "create": "node ./scripts/create-rule",
|
23 | 23 | "flow": "flow",
|
24 | 24 | "lint:fix": "npm run lint -- --fix",
|
25 |
| - "lint": "eslint --ext=js,mjs,cjs,ts,tsx .", |
| 25 | + "lint": "npx eslint@8 --ext=js,mjs,cjs,ts,tsx .", |
26 | 26 | "prepublish": "not-in-publish || npm run prepublishOnly",
|
27 | 27 | "prepublishOnly": "safe-publish-latest && npm run lint && npm run flow && npm run jest",
|
28 | 28 | "pretest": "npm run lint:fix && npm run flow",
|
|
34 | 34 | "test-example:legacy": "cd examples/legacy && npm install && npm run lint",
|
35 | 35 | "test-example:flat-esm": "cd examples/flat-esm && npm install && npm run lint",
|
36 | 36 | "test-example:flat-cjs": "cd examples/flat-cjs && npm install && npm run lint",
|
37 |
| - "jest": "jest --coverage __tests__/**/*", |
| 37 | + "jest": "jest --coverage __tests__", |
38 | 38 | "pregenerate-list-of-rules": "npm run build",
|
39 | 39 | "generate-list-of-rules": "eslint-doc-generator --rule-doc-title-format prefix-name --rule-doc-section-options false --config-emoji recommended,☑️ --ignore-config flat/recommended --ignore-config flat/strict",
|
40 | 40 | "generate-list-of-rules:check": "npm run generate-list-of-rules -- --check",
|
|
51 | 51 | "babel-jest": "^24.9.0",
|
52 | 52 | "babel-plugin-add-module-exports": "^1.0.4",
|
53 | 53 | "babel-preset-airbnb": "^5.0.0",
|
54 |
| - "eslint": "^3 || ^4 || ^5 || ^6 || ^7 || ^8", |
| 54 | + "core-js": "^3.38.1", |
| 55 | + "eslint": "^3 || ^4 || ^5 || ^6 || ^7 || ^8 || ^9", |
55 | 56 | "eslint-config-airbnb-base": "^15.0.0",
|
56 | 57 | "eslint-doc-generator": "^1.7.1",
|
57 | 58 | "eslint-plugin-eslint-plugin": "^4.3.0",
|
|
96 | 97 | "string.prototype.includes": "^2.0.0"
|
97 | 98 | },
|
98 | 99 | "peerDependencies": {
|
99 |
| - "eslint": "^3 || ^4 || ^5 || ^6 || ^7 || ^8" |
| 100 | + "eslint": "^3 || ^4 || ^5 || ^6 || ^7 || ^8 || ^9" |
100 | 101 | },
|
101 | 102 | "jest": {
|
102 | 103 | "coverageReporters": [
|
|
111 | 112 | "testPathIgnorePatterns": [
|
112 | 113 | "__tests__/__util__/"
|
113 | 114 | ],
|
114 |
| - "testEnvironment": "node" |
| 115 | + "testEnvironment": "node", |
| 116 | + "moduleNameMapper": { |
| 117 | + "@eslint/config-array": "<rootDir>/node_modules/@eslint/config-array/dist/cjs/index.cjs", |
| 118 | + "@eslint/object-schema": "<rootDir>/node_modules/@eslint/object-schema/dist/cjs/index.cjs", |
| 119 | + "node:assert": "<rootDir>/__tests__/__util__/nodeReexports/assert.js", |
| 120 | + "node:fs/promises": "<rootDir>/__tests__/__util__/nodeReexports/fs-promises.js", |
| 121 | + "node:fs": "<rootDir>/__tests__/__util__/nodeReexports/fs.js", |
| 122 | + "node:path": "<rootDir>/__tests__/__util__/nodeReexports/path.js", |
| 123 | + "node:url": "<rootDir>/__tests__/__util__/nodeReexports/url.js", |
| 124 | + "node:util": "<rootDir>/__tests__/__util__/nodeReexports/util.js" |
| 125 | + }, |
| 126 | + "setupFilesAfterEnv": ["<rootDir>/setup.jest.js"] |
115 | 127 | },
|
116 | 128 | "auto-changelog": {
|
117 | 129 | "output": "CHANGELOG.md",
|
|
132 | 144 | "/flow",
|
133 | 145 | "scripts/",
|
134 | 146 | "CONTRIBUTING.md",
|
135 |
| - "/examples" |
| 147 | + "/examples", |
| 148 | + "setup.jest.js" |
136 | 149 | ]
|
137 | 150 | }
|
138 | 151 | }
|
0 commit comments