Skip to content

Commit

Permalink
Update formatting following Biomes rules
Browse files Browse the repository at this point in the history
  • Loading branch information
levibuzolic committed Aug 15, 2024
1 parent 2944a6d commit 1daa41b
Show file tree
Hide file tree
Showing 7 changed files with 405 additions and 403 deletions.
18 changes: 9 additions & 9 deletions biome.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"$schema": "https://biomejs.dev/schemas/1.8.3/schema.json",
"organizeImports": { "enabled": true },
"linter": {
"enabled": true,
"rules": { "recommended": true }
},
"formatter": {
"enabled": true
}
"$schema": "https://biomejs.dev/schemas/1.8.3/schema.json",
"organizeImports": { "enabled": true },
"linter": {
"enabled": true,
"rules": { "recommended": true }
},
"formatter": {
"enabled": true
}
}
32 changes: 16 additions & 16 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
const plugin = require('./index');
const js = require('@eslint/js');
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',
},
},
js.configs.recommended,
{
files: ["**/*.js"],
languageOptions: {
sourceType: "commonjs",
ecmaVersion: "latest",
},
plugins: {
"no-only-tests": plugin,
},
rules: {
"no-only-tests/no-only-tests": "error",
},
},
];
6 changes: 3 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module.exports = {
rules: {
'no-only-tests': require('./rules/no-only-tests'),
},
rules: {
"no-only-tests": require("./rules/no-only-tests"),
},
};
83 changes: 40 additions & 43 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,45 +1,42 @@
{
"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"
"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"
}
Loading

0 comments on commit 1daa41b

Please sign in to comment.