Skip to content

Commit 37586ad

Browse files
committed
Review cleanup
1 parent 1c055cf commit 37586ad

File tree

4 files changed

+11
-28
lines changed

4 files changed

+11
-28
lines changed

packages/code-analyzer-eslint-engine/src/base-config.ts

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -113,14 +113,7 @@ export class BaseConfigFactory {
113113
//todo: Should this need to be updated now to take CSS into consideration?
114114
return sldsEslintPlugin.configs['flat/recommended'].map(conf => ({
115115
...conf,
116-
files: this.engineConfig.file_extensions.html.map(ext => `**/*${ext}`),
117-
languageOptions: {
118-
... (conf.languageOptions ?? {}),
119-
parserOptions: {
120-
... (conf.languageOptions?.parserOptions ?? {}),
121-
projectService: true
122-
}
123-
}
116+
files: this.engineConfig.file_extensions.html.map(ext => `**/*${ext}`)
124117
}));
125118
}
126119

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
const { defineConfig } = require("eslint/config");
2-
3-
module.exports = defineConfig([
1+
module.exports = [
42
{
53
rules: {
64
"array-callback-return": ["error"],
@@ -9,4 +7,4 @@ module.exports = defineConfig([
97
"no-useless-escape": [0]
108
},
119
},
12-
]);
10+
];
Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
1-
const { defineConfig } = require("eslint/config");
2-
3-
module.exports = defineConfig([
1+
module.exports = [
42
{
53
// Should globally ignore js files - making the base js and lwc config not applicable
64
// See https://eslint.org/docs/latest/use/configure/configuration-files#globally-ignoring-files-with-ignores
75
ignores: ["**/*.js"]
86
}
9-
]);
7+
];
Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,6 @@
1-
import { defineConfig } from "eslint/config";
2-
3-
export default defineConfig([
4-
{
5-
rules: {
6-
"array-callback-return": ["error"],
7-
"no-unused-vars": ["error", { argsIgnorePattern: "^_" }],
8-
"no-useless-backreference": ["warn"],
9-
"no-useless-escape": [0]
10-
},
11-
},
12-
]);
1+
export const rules = {
2+
"array-callback-return": ["error"],
3+
"no-unused-vars": ["error", { argsIgnorePattern: "^_" }],
4+
"no-useless-backreference": ["warn"],
5+
"no-useless-escape": [0]
6+
};

0 commit comments

Comments
 (0)