Skip to content

Commit

Permalink
use flag config file for eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
ben-zhang-at-salesforce committed May 8, 2024
1 parent 53bf893 commit 1824edf
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 24 deletions.
20 changes: 0 additions & 20 deletions .eslintrc

This file was deleted.

22 changes: 22 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
/*
* Copyright (c) 2024, salesforce.com, inc.
* All rights reserved.
* SPDX-License-Identifier: MIT
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
*/

import eslint from "@eslint/js";
import tsEslint from 'typescript-eslint';

export default tsEslint.config(
eslint.configs.recommended,
...tsEslint.configs.recommended,
...tsEslint.configs.stylistic,

{
rules: {
"strict": ["error", "global"],
"@typescript-eslint/no-extra-non-null-assertion": "off"
}
}
);
1 change: 1 addition & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 5 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,14 +63,15 @@
"!**/test/"
],
"devDependencies": {
"@eslint/js": "^9.2.0",
"@jest/globals": "^29.7.0",
"@typescript-eslint/eslint-plugin": "^7.8.0",
"@typescript-eslint/parser": "^7.8.0",
"@typescript-eslint/rule-tester": "^7.8.0",
"@typescript-eslint/utils": "^7.8.0",
"eslint": "^8.57.0",
"eslint-plugin-eslint-plugin": "^6.1.0",
"eslint-plugin-node": "^11.1.0",
"eslint": "^8.57.0",
"@eslint/js": "^9.2.0",
"@jest/globals": "^29.7.0",
"@typescript-eslint/rule-tester": "^7.8.0",
"jest": "^29.7.0",
"jest-chain": "^1.1.6",
"jest-extended": "^4.0.1",
Expand Down

0 comments on commit 1824edf

Please sign in to comment.