Switch to ESLint projectService (#218)
* Switch to ESLint projectService * Update copilot instructions to remove deleted files
This commit is contained in:
@@ -13,7 +13,7 @@ generated from.
|
|||||||
## Repository Structure
|
## Repository Structure
|
||||||
|
|
||||||
| Path | Description |
|
| Path | Description |
|
||||||
| ---------------------- | ----------------------------------- |
|
| -------------------- | ----------------------------------- |
|
||||||
| `__fixtures__/` | Unit Test Fixtures |
|
| `__fixtures__/` | Unit Test Fixtures |
|
||||||
| `__tests__/` | Unit Tests |
|
| `__tests__/` | Unit Tests |
|
||||||
| `.devcontainer/` | Development Container Configuration |
|
| `.devcontainer/` | Development Container Configuration |
|
||||||
@@ -37,8 +37,6 @@ generated from.
|
|||||||
| `package.json` | NPM Package Configuration |
|
| `package.json` | NPM Package Configuration |
|
||||||
| `README.md` | Project Documentation |
|
| `README.md` | Project Documentation |
|
||||||
| `rollup.config.ts` | Rollup Bundler Configuration |
|
| `rollup.config.ts` | Rollup Bundler Configuration |
|
||||||
| `tsconfig.base.json` | Base TypeScript Configuration |
|
|
||||||
| `tsconfig.eslint.json` | TypeScript Configuration for ESLint |
|
|
||||||
| `tsconfig.json` | TypeScript Configuration |
|
| `tsconfig.json` | TypeScript Configuration |
|
||||||
|
|
||||||
## Environment Setup
|
## Environment Setup
|
||||||
|
|||||||
-1
@@ -1 +0,0 @@
|
|||||||
export {};
|
|
||||||
-1
@@ -27297,4 +27297,3 @@ async function run() {
|
|||||||
*/
|
*/
|
||||||
/* istanbul ignore next */
|
/* istanbul ignore next */
|
||||||
run();
|
run();
|
||||||
//# sourceMappingURL=index.js.map
|
|
||||||
|
|||||||
-1
File diff suppressed because one or more lines are too long
-6
@@ -1,6 +0,0 @@
|
|||||||
/**
|
|
||||||
* The main function for the action.
|
|
||||||
*
|
|
||||||
* @returns Resolves when the action is complete.
|
|
||||||
*/
|
|
||||||
export declare function run(): Promise<void>;
|
|
||||||
-7
@@ -1,7 +0,0 @@
|
|||||||
/**
|
|
||||||
* Waits for a number of milliseconds.
|
|
||||||
*
|
|
||||||
* @param milliseconds The number of milliseconds to wait.
|
|
||||||
* @returns Resolves with 'done!' after the wait is over.
|
|
||||||
*/
|
|
||||||
export declare function wait(milliseconds: number): Promise<string>;
|
|
||||||
+12
-7
@@ -9,13 +9,9 @@ import _import from 'eslint-plugin-import'
|
|||||||
import jest from 'eslint-plugin-jest'
|
import jest from 'eslint-plugin-jest'
|
||||||
import prettier from 'eslint-plugin-prettier'
|
import prettier from 'eslint-plugin-prettier'
|
||||||
import globals from 'globals'
|
import globals from 'globals'
|
||||||
import path from 'node:path'
|
|
||||||
import { fileURLToPath } from 'node:url'
|
|
||||||
|
|
||||||
const __filename = fileURLToPath(import.meta.url)
|
|
||||||
const __dirname = path.dirname(__filename)
|
|
||||||
const compat = new FlatCompat({
|
const compat = new FlatCompat({
|
||||||
baseDirectory: __dirname,
|
baseDirectory: import.meta.dirname,
|
||||||
recommendedConfig: js.configs.recommended,
|
recommendedConfig: js.configs.recommended,
|
||||||
allConfig: js.configs.all
|
allConfig: js.configs.all
|
||||||
})
|
})
|
||||||
@@ -52,7 +48,16 @@ export default [
|
|||||||
sourceType: 'module',
|
sourceType: 'module',
|
||||||
|
|
||||||
parserOptions: {
|
parserOptions: {
|
||||||
project: ['tsconfig.eslint.json']
|
projectService: {
|
||||||
|
allowDefaultProject: [
|
||||||
|
'__fixtures__/*.ts',
|
||||||
|
'__tests__/*.ts',
|
||||||
|
'eslint.config.mjs',
|
||||||
|
'jest.config.js',
|
||||||
|
'rollup.config.ts'
|
||||||
|
]
|
||||||
|
},
|
||||||
|
tsconfigRootDir: import.meta.dirname
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
@@ -60,7 +65,7 @@ export default [
|
|||||||
'import/resolver': {
|
'import/resolver': {
|
||||||
typescript: {
|
typescript: {
|
||||||
alwaysTryTypes: true,
|
alwaysTryTypes: true,
|
||||||
project: 'tsconfig.eslint.json'
|
project: 'tsconfig.json'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
+1
-1
@@ -31,7 +31,7 @@ export default {
|
|||||||
'^.+\\.ts$': [
|
'^.+\\.ts$': [
|
||||||
'ts-jest',
|
'ts-jest',
|
||||||
{
|
{
|
||||||
tsconfig: 'tsconfig.eslint.json',
|
tsconfig: 'tsconfig.json',
|
||||||
useESM: true
|
useESM: true
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|||||||
+1
-1
@@ -10,7 +10,7 @@ const config = {
|
|||||||
esModule: true,
|
esModule: true,
|
||||||
file: 'dist/index.js',
|
file: 'dist/index.js',
|
||||||
format: 'es',
|
format: 'es',
|
||||||
sourcemap: true
|
sourcemap: false
|
||||||
},
|
},
|
||||||
plugins: [typescript(), nodeResolve({ preferBuiltins: true }), commonjs()]
|
plugins: [typescript(), nodeResolve({ preferBuiltins: true }), commonjs()]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,23 +0,0 @@
|
|||||||
{
|
|
||||||
"$schema": "https://json.schemastore.org/tsconfig",
|
|
||||||
"compilerOptions": {
|
|
||||||
"allowSyntheticDefaultImports": true,
|
|
||||||
"declaration": true,
|
|
||||||
"declarationMap": false,
|
|
||||||
"esModuleInterop": true,
|
|
||||||
"forceConsistentCasingInFileNames": true,
|
|
||||||
"isolatedModules": true,
|
|
||||||
"lib": ["ES2022"],
|
|
||||||
"module": "NodeNext",
|
|
||||||
"moduleResolution": "NodeNext",
|
|
||||||
"newLine": "lf",
|
|
||||||
"noImplicitAny": true,
|
|
||||||
"noUnusedLocals": true,
|
|
||||||
"noUnusedParameters": false,
|
|
||||||
"pretty": true,
|
|
||||||
"resolveJsonModule": true,
|
|
||||||
"strict": true,
|
|
||||||
"strictNullChecks": true,
|
|
||||||
"target": "ES2022"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,17 +0,0 @@
|
|||||||
{
|
|
||||||
"$schema": "https://json.schemastore.org/tsconfig",
|
|
||||||
"extends": "./tsconfig.base.json",
|
|
||||||
"compilerOptions": {
|
|
||||||
"allowJs": true,
|
|
||||||
"noEmit": true
|
|
||||||
},
|
|
||||||
"exclude": ["dist", "node_modules"],
|
|
||||||
"include": [
|
|
||||||
"__fixtures__",
|
|
||||||
"__tests__",
|
|
||||||
"src",
|
|
||||||
"eslint.config.mjs",
|
|
||||||
"jest.config.js",
|
|
||||||
"rollup.config.ts"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
+18
-2
@@ -1,10 +1,26 @@
|
|||||||
{
|
{
|
||||||
"$schema": "https://json.schemastore.org/tsconfig",
|
"$schema": "https://json.schemastore.org/tsconfig",
|
||||||
"extends": "./tsconfig.base.json",
|
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
|
"allowSyntheticDefaultImports": true,
|
||||||
|
"declaration": false,
|
||||||
|
"declarationMap": false,
|
||||||
|
"esModuleInterop": true,
|
||||||
|
"forceConsistentCasingInFileNames": true,
|
||||||
|
"isolatedModules": true,
|
||||||
|
"lib": ["ES2022"],
|
||||||
"module": "NodeNext",
|
"module": "NodeNext",
|
||||||
"moduleResolution": "NodeNext",
|
"moduleResolution": "NodeNext",
|
||||||
"outDir": "./dist"
|
"newLine": "lf",
|
||||||
|
"noImplicitAny": true,
|
||||||
|
"noUnusedLocals": true,
|
||||||
|
"noUnusedParameters": false,
|
||||||
|
"outDir": "./dist",
|
||||||
|
"pretty": true,
|
||||||
|
"resolveJsonModule": true,
|
||||||
|
"sourceMap": false,
|
||||||
|
"strict": true,
|
||||||
|
"strictNullChecks": true,
|
||||||
|
"target": "ES2022"
|
||||||
},
|
},
|
||||||
"exclude": ["__fixtures__", "__tests__", "coverage", "dist", "node_modules"],
|
"exclude": ["__fixtures__", "__tests__", "coverage", "dist", "node_modules"],
|
||||||
"include": ["src"]
|
"include": ["src"]
|
||||||
|
|||||||
Reference in New Issue
Block a user