File tree Expand file tree Collapse file tree 7 files changed +1
-52
lines changed
Expand file tree Collapse file tree 7 files changed +1
-52
lines changed Original file line number Diff line number Diff line change 11import type { Linter } from "eslint"
22import { pluginImportAstroRulesExtra } from "./plugin-import-rules.cjs"
33import astroPlugin from "eslint-plugin-astro"
4- import * as onlyWarnPlugin from "eslint-plugin-only-warn"
54import astroParser from "astro-eslint-parser"
65
76export const astroConfig : Linter . Config [ ] = [
@@ -21,7 +20,6 @@ export const astroConfig: Linter.Config[] = [
2120 } ,
2221 plugins : {
2322 astro : astroPlugin ,
24- "only-warn" : onlyWarnPlugin ,
2523 } ,
2624 rules : {
2725 ...pluginImportAstroRulesExtra ,
Original file line number Diff line number Diff line change @@ -2,7 +2,6 @@ import { pluginNodeRules } from "./plugin-node-rules.cjs"
22import { pluginImportRulesExtra } from "./plugin-import-rules.cjs"
33import type { Linter } from "eslint"
44import * as eslintPluginCoffee from "eslint-plugin-coffee"
5- import * as onlyWarnPlugin from "eslint-plugin-only-warn"
65import * as nodePlugin from "eslint-plugin-node"
76import * as coffeeParser from "eslint-plugin-coffee/parser"
87
@@ -17,7 +16,6 @@ export const coffeeConfig: Linter.Config = {
1716 plugins : {
1817 coffee : eslintPluginCoffee ,
1918 node : nodePlugin ,
20- "only-warn" : onlyWarnPlugin ,
2119 } ,
2220 rules : {
2321 ...pluginNodeRules ,
Original file line number Diff line number Diff line change 11import nonStrictConfig from "./index-react.cjs"
22
3- // // remove only-warn from javascript
4- // if (
5- // nonStrictConfig.plugins !== undefined &&
6- // nonStrictConfig.plugins[nonStrictConfig.plugins.length - 1] === "only-warn"
7- // ) {
8- // nonStrictConfig.plugins.pop()
9- // }
10-
11- // // remove only-warn from overrides
12- // nonStrictConfig.overrides?.forEach((overrides) => {
13- // if (overrides.plugins !== undefined && overrides.plugins[overrides.plugins.length - 1] === "only-warn") {
14- // overrides.plugins.pop()
15- // }
16- // })
17-
183export default nonStrictConfig
Original file line number Diff line number Diff line change 11import nonStrictConfig from "./index-solid.cjs"
22
3- // // remove only-warn from javascript
4- // if (
5- // nonStrictConfig.plugins !== undefined &&
6- // nonStrictConfig.plugins[nonStrictConfig.plugins.length - 1] === "only-warn"
7- // ) {
8- // nonStrictConfig.plugins.pop()
9- // }
10-
11- // // remove only-warn from overrides
12- // nonStrictConfig.overrides?.forEach((overrides) => {
13- // if (overrides.plugins !== undefined && overrides.plugins[overrides.plugins.length - 1] === "only-warn") {
14- // overrides.plugins.pop()
15- // }
16- // })
173
184export default nonStrictConfig
Original file line number Diff line number Diff line change 11import nonStrictConfig from "./index.cjs"
22
3- // // remove only-warn from javascript
4- // if (
5- // nonStrictConfig.plugins !== undefined &&
6- // nonStrictConfig.plugins[nonStrictConfig.plugins.length - 1] === "only-warn"
7- // ) {
8- // nonStrictConfig.plugins.pop()
9- // }
10-
11- // // remove only-warn from overrides
12- // nonStrictConfig.overrides?.forEach((overrides) => {
13- // if (overrides.plugins !== undefined && overrides.plugins[overrides.plugins.length - 1] === "only-warn") {
14- // overrides.plugins.pop()
15- // }
16- // })
17-
183export default nonStrictConfig
Original file line number Diff line number Diff line change @@ -5,7 +5,6 @@ import type { Linter } from "eslint"
55import * as eslintBabelParser from "@babel/eslint-parser"
66import * as nodePlugin from "eslint-plugin-node"
77import * as importPlugin from "eslint-plugin-import"
8- import * as onlyWarnPlugin from "eslint-plugin-only-warn"
98
109import js from "@eslint/js"
1110
@@ -33,7 +32,7 @@ export const jsConfig: Linter.Config[] = [
3332 plugins : {
3433 node : nodePlugin ,
3534 import : importPlugin ,
36- "only-warn" : onlyWarnPlugin ,
35+
3736 } ,
3837 rules : {
3938 ...eslintRulesExtra ,
Original file line number Diff line number Diff line change @@ -3,7 +3,6 @@ import * as typeScriptPlugin from "typescript-eslint"
33import type { Linter } from "eslint"
44import * as importPlugin from "eslint-plugin-import"
55import * as nodePlugin from "eslint-plugin-node"
6- import * as onlyWarnPlugin from "eslint-plugin-only-warn"
76import type { GlobifiedEntry } from "globify-gitignore"
87import makeSynchronous from "make-synchronous"
98import { eslintRulesExtra } from "./official-eslint-rules.cjs"
@@ -137,7 +136,6 @@ export const tsConfig: Linter.Config = {
137136 plugins : {
138137 node : nodePlugin ,
139138 import : importPlugin ,
140- "only-warn" : onlyWarnPlugin ,
141139 } ,
142140 rules : {
143141 ...javaScriptRules ( ) ,
You can’t perform that action at this time.
0 commit comments