-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding linting check for core-build-task (#28)
* - Adding basic linting to core-build-tasks * Change files * - Dummy change * - Fixing prettier config * - Reverting readme file changes * - Using gitattributes file instead. * - Using endOfLine auto again * - Fixing nit for the task
- Loading branch information
Showing
15 changed files
with
230 additions
and
78 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"eslint.experimental.useFlatConfig": true, | ||
"eslint.workingDirectories": [ | ||
{ | ||
"pattern": "./libraries/*/" | ||
}, | ||
{ | ||
"pattern": "./tools/*/" | ||
} | ||
] | ||
} |
7 changes: 7 additions & 0 deletions
7
change/@minecraft-core-build-tasks-268ae585-2ff5-4e08-8d7a-de34c01ca869.json
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,7 @@ | ||
{ | ||
"type": "none", | ||
"comment": "- Adding basic linting to core-build-tasks", | ||
"packageName": "@minecraft/core-build-tasks", | ||
"email": "[email protected]", | ||
"dependentChangeType": "none" | ||
} |
7 changes: 7 additions & 0 deletions
7
change/@minecraft-math-4ca66802-83ea-472e-b2ea-b8ba47e0bcb0.json
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,7 @@ | ||
{ | ||
"type": "none", | ||
"comment": "Enabling prettier check", | ||
"packageName": "@minecraft/math", | ||
"email": "[email protected]", | ||
"dependentChangeType": "none" | ||
} |
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
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,21 @@ | ||
import globals from 'globals'; | ||
import tsParser from '@typescript-eslint/parser'; | ||
|
||
export default [ | ||
{ | ||
files: ['**/*.{ts,tsx,js,jsx}', '*.ts'], | ||
languageOptions: { | ||
parser: tsParser, | ||
parserOptions: { | ||
ecmaVersion: 'latest', | ||
project: './tsconfig.json', | ||
}, | ||
globals: { | ||
...globals.node, | ||
}, | ||
}, | ||
rules: { | ||
eqeqeq: ['error', 'always'], | ||
}, | ||
}, | ||
]; |
Oops, something went wrong.