-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #45 from levibuzolic/support-eslint-v9
Support ESLint v9
- Loading branch information
Showing
9 changed files
with
856 additions
and
904 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"$schema": "https://biomejs.dev/schemas/1.8.3/schema.json", | ||
"organizeImports": { "enabled": true }, | ||
"linter": { | ||
"enabled": true, | ||
"rules": { "recommended": true } | ||
}, | ||
"formatter": { | ||
"enabled": true | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
const plugin = require("./index"); | ||
const js = require("@eslint/js"); | ||
|
||
/** @type {import('eslint').Linter.Config} */ | ||
module.exports = [ | ||
js.configs.recommended, | ||
{ | ||
files: ["**/*.js"], | ||
languageOptions: { | ||
sourceType: "commonjs", | ||
ecmaVersion: "latest", | ||
}, | ||
plugins: { | ||
"no-only-tests": plugin, | ||
}, | ||
rules: { | ||
"no-only-tests/no-only-tests": "error", | ||
}, | ||
}, | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,5 @@ | ||
'use strict'; | ||
|
||
module.exports = { | ||
rules: { | ||
'no-only-tests': require('./rules/no-only-tests') | ||
} | ||
rules: { | ||
"no-only-tests": require("./rules/no-only-tests"), | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,42 @@ | ||
{ | ||
"name": "eslint-plugin-no-only-tests", | ||
"version": "3.2.0", | ||
"description": "ESLint rule for .only blocks in mocha tests", | ||
"keywords": [ | ||
"eslint", | ||
"eslintplugin", | ||
"eslint-plugin", | ||
"mocha", | ||
"rule", | ||
"only", | ||
"describe", | ||
"it", | ||
"fixture" | ||
], | ||
"author": "Levi Buzolic", | ||
"main": "index.js", | ||
"files": [ | ||
"index.js", | ||
"rules/" | ||
], | ||
"scripts": { | ||
"test": "node tests.js" | ||
}, | ||
"devDependencies": { | ||
"eslint": ">=3.0.0" | ||
}, | ||
"engines": { | ||
"node": ">=5.0.0" | ||
}, | ||
"license": "MIT", | ||
"repository": { | ||
"type": "git", | ||
"url": "git@github.com:levibuzolic/eslint-plugin-no-only-tests.git" | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/levibuzolic/no-only-tests/issues" | ||
}, | ||
"homepage": "https://github.com/levibuzolic/no-only-tests#readme" | ||
"name": "eslint-plugin-no-only-tests", | ||
"version": "4.0.0", | ||
"description": "ESLint rule for .only blocks in mocha tests", | ||
"keywords": [ | ||
"eslint", | ||
"eslintplugin", | ||
"eslint-plugin", | ||
"mocha", | ||
"rule", | ||
"only", | ||
"describe", | ||
"it", | ||
"fixture" | ||
], | ||
"author": "Levi Buzolic", | ||
"main": "index.js", | ||
"files": ["index.js", "rules/"], | ||
"scripts": { | ||
"test": "node tests.js" | ||
}, | ||
"devDependencies": { | ||
"@biomejs/biome": "^1.8.3", | ||
"@types/eslint": "^9.6.0", | ||
"@types/eslint__js": "^8.42.3", | ||
"@types/node": "^22.3.0", | ||
"eslint": ">=9.0.0", | ||
"typescript": "^5.5.4" | ||
}, | ||
"engines": { | ||
"node": ">=5.0.0" | ||
}, | ||
"license": "MIT", | ||
"repository": { | ||
"type": "git", | ||
"url": "git@github.com:levibuzolic/eslint-plugin-no-only-tests.git" | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/levibuzolic/no-only-tests/issues" | ||
}, | ||
"homepage": "https://github.com/levibuzolic/no-only-tests#readme" | ||
} |
Oops, something went wrong.