-
-
Notifications
You must be signed in to change notification settings - Fork 204
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 #1944 from patricklx/gts/gjs-configs
gts/gjs configs
- Loading branch information
Showing
12 changed files
with
167 additions
and
58 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 |
---|---|---|
@@ -1,6 +1,8 @@ | ||
coverage/ | ||
node_modules | ||
lib/recommended-rules.js | ||
lib/recommended-rules-gjs.js | ||
lib/recommended-rules-gts.js | ||
|
||
# Contains <template> in js markdown | ||
docs/rules/no-empty-glimmer-component-classes.md | ||
docs/rules/no-empty-glimmer-component-classes.md |
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,27 @@ | ||
module.exports = { | ||
root: true, | ||
|
||
parserOptions: { | ||
ecmaVersion: 2020, | ||
sourceType: 'module', | ||
}, | ||
|
||
env: { | ||
browser: true, | ||
es2020: true, | ||
}, | ||
|
||
plugins: ['ember'], | ||
|
||
overrides: [ | ||
/** | ||
* We don't want to *always* have the preprocessor active, | ||
* it's only relevant on gjs and gts files to detect if eslint config is correctly setup for this files. | ||
*/ | ||
{ | ||
files: ['**/*.{gts,gjs}'], | ||
parser: 'eslint-plugin-ember/gjs-gts-parser', | ||
processor: 'ember/<noop>', | ||
}, | ||
], | ||
}; |
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 @@ | ||
const base = require('./base'); | ||
const gjsRules = require('../recommended-rules-gjs'); | ||
|
||
module.exports = { | ||
...base, | ||
rules: gjsRules, | ||
}; |
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 @@ | ||
const base = require('./base'); | ||
const gtsRules = require('../recommended-rules-gts'); | ||
|
||
module.exports = { | ||
...base, | ||
rules: gtsRules, | ||
}; |
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,36 +1,7 @@ | ||
const base = require('./base'); | ||
const rules = require('../recommended-rules'); | ||
|
||
module.exports = { | ||
root: true, | ||
|
||
parserOptions: { | ||
ecmaVersion: 2020, | ||
sourceType: 'module', | ||
}, | ||
|
||
env: { | ||
browser: true, | ||
es2020: true, | ||
}, | ||
|
||
plugins: ['ember'], | ||
|
||
...base, | ||
rules, | ||
|
||
overrides: [ | ||
/** | ||
* We don't want to *always* have the preprocessor active, | ||
* it's only relevant on gjs and gts files. | ||
* | ||
* Additionally, we need to declare a global (which is private API) | ||
* so that ESLint doesn't report errors about the variable being undefined. | ||
* While this is true, it's a temporary thing for babel to do further processing | ||
* on -- and isn't relevant to user-land code. | ||
*/ | ||
{ | ||
files: ['**/*.gts', '**/*.gjs'], | ||
parser: 'eslint-plugin-ember/gjs-gts-parser', | ||
processor: 'ember/<noop>', | ||
}, | ||
], | ||
}; |
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 @@ | ||
/* | ||
* IMPORTANT! | ||
* This file has been automatically generated. | ||
* In order to update its content based on rules' | ||
* definitions, execute "npm run update" | ||
*/ | ||
module.exports = {} |
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 @@ | ||
/* | ||
* IMPORTANT! | ||
* This file has been automatically generated. | ||
* In order to update its content based on rules' | ||
* definitions, execute "npm run update" | ||
*/ | ||
module.exports = {} |
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