-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add ESPI guidelines and corresponding files for linting. Basic Webpack
- Loading branch information
Showing
11 changed files
with
17,981 additions
and
11 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,6 @@ | ||
node_modules/ | ||
web/ | ||
.stylelintrc.js | ||
.eslintrc.js | ||
webpack.prod.config.js | ||
webpack.dev.config.js |
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,3 @@ | ||
module.exports = { | ||
extends: 'semistandard' | ||
}; |
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 |
---|---|---|
|
@@ -11,6 +11,8 @@ | |
/web/assets/* | ||
/web/cpresources/* | ||
/web/cache/ | ||
/web/js/* | ||
/web/css/* | ||
|
||
# BUILD FILES | ||
/bower_components/* | ||
|
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,2 +1,2 @@ | ||
9.3.0 | ||
9.10.0 | ||
|
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,23 @@ | ||
module.exports = { | ||
extends: 'stylelint-config-sass-guidelines', | ||
ignoreFiles: [ | ||
'./node_modules/**/*', | ||
'./vendor/**/*', | ||
'./web/**/*', | ||
], | ||
rules: { | ||
// we don't enforce css properties to be sorted alphabetically | ||
'order/properties-alphabetical-order': null, | ||
// stylelint-config-sass-guidelines requires | ||
// you to omit the '.scss' ending in @import statements. | ||
// However, since we are using webpack to build the css, | ||
// and there are also non-scss files (like .js) in folders like /components, | ||
// webpack would try to import them into the scss and produce an error. | ||
// Hence, we need to be able to specify the file ending to actually | ||
// only import the .scss files. | ||
'scss/at-import-partial-extension-blacklist': null, | ||
// This enforces BEM class patterns. Feel free to edit. | ||
'selector-class-pattern': | ||
'^(?:(?:o|c|u|t|s|is|has|_|js|qa)-)?[a-zA-Z0-9]+(?:-[a-zA-Z0-9]+)*(?:__[a-zA-Z0-9]+(?:-[a-zA-Z0-9]+)*)?(?:--[a-zA-Z0-9]+(?:-[a-zA-Z0-9]+)*)?(?:\\[.+\\])?$', | ||
}, | ||
}; |
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
Oops, something went wrong.