Skip to content

Commit d69d4e4

Browse files
authored
Merge pull request #660 from OneNoteDev/user/wikirby/dep-cleanup
Dependency upgrade and V1 dead-code cleanup
2 parents 3bc503f + a3ed084 commit d69d4e4

90 files changed

Lines changed: 5893 additions & 40682 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

azure-pipelines.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ pool:
1616
steps:
1717
- task: NodeTool@0
1818
inputs:
19-
versionSpec: '10.x'
19+
versionSpec: '24.x'
2020
displayName: 'Install Node.js'
2121

2222
- task: securedevelopmentteam.vss-secure-development-tools.build-task-credscan.CredScan@3

eslint.config.mjs

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
import tseslint from "typescript-eslint";
2+
3+
export default tseslint.config(
4+
{
5+
ignores: [
6+
"build/**",
7+
"target/**",
8+
"node_modules/**",
9+
"src/**/*.d.ts",
10+
// Copies sourced from WebClipper_Internal via the copyInternal gulp
11+
// task (basename + "_internal"). Lint those in their own repo.
12+
"src/scripts/**/*_internal.ts",
13+
"src/scripts/**/*_internal.tsx",
14+
"src/scripts/definitions/custom/aria-web-telemetry-*.d_internal.ts"
15+
]
16+
},
17+
{
18+
files: ["src/**/*.ts", "src/**/*.tsx"],
19+
languageOptions: {
20+
parser: tseslint.parser,
21+
ecmaVersion: 2022,
22+
sourceType: "module",
23+
parserOptions: {
24+
project: "./tsconfig.json",
25+
tsconfigRootDir: import.meta.dirname
26+
}
27+
},
28+
plugins: {
29+
"@typescript-eslint": tseslint.plugin
30+
},
31+
rules: {
32+
"spaced-comment": ["error", "always"],
33+
"curly": "error",
34+
"eol-last": "error",
35+
"indent": ["error", "tab", { "SwitchCase": 1 }],
36+
"no-multiple-empty-lines": ["error", { "max": 1 }],
37+
"no-console": "error",
38+
"@typescript-eslint/no-inferrable-types": "error",
39+
"@typescript-eslint/no-shadow": "error",
40+
"dot-notation": "error",
41+
"no-fallthrough": "error",
42+
"no-trailing-spaces": "error",
43+
"no-unreachable": "error",
44+
"@typescript-eslint/no-unused-expressions": ["error", { "allowTernary": true, "allowShortCircuit": true }],
45+
"no-var": "error",
46+
"brace-style": ["error", "1tbs", { "allowSingleLine": true }],
47+
"quotes": ["error", "double", { "avoidEscape": true }],
48+
"radix": "error",
49+
"semi": ["error", "always"],
50+
"default-case": "error",
51+
"eqeqeq": "error",
52+
"@typescript-eslint/prefer-optional-chain": "error"
53+
}
54+
}
55+
);

0 commit comments

Comments
 (0)