-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #10 from alienfast/add-ts-react-tweaks
Add ts react tweaks
- Loading branch information
Showing
7 changed files
with
45 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,10 @@ | ||
import jsOnly from './jsOnly.js' | ||
import jsOnlyScripts from './jsOnlyScripts.js' | ||
import react from './react.js' | ||
|
||
const ruleset = { | ||
jsOnly, | ||
jsOnlyScripts, | ||
react, | ||
} | ||
export default ruleset |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import tseslint from 'typescript-eslint' | ||
|
||
import { JS_FILES } from '../constants.js' | ||
|
||
/** | ||
* Turn off rules not necessary for js only files. | ||
* | ||
* Do not extend configs, it will alter files/ignores behavior. | ||
* | ||
* View config with `npx @eslint/config-inspector` | ||
*/ | ||
const configs = tseslint.config({ | ||
name: 'alienfast-limits-react', | ||
files: JS_FILES, | ||
rules: { | ||
// this gets really messy in tsx and graphql when types are forced to any e.g. policies | ||
'@typescript-eslint/no-unsafe-assignment': 'off', // 57% of the time | ||
'@typescript-eslint/no-unsafe-member-access': 'off', | ||
}, | ||
}) | ||
|
||
export default configs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters