forked from ArekSredzki/electron-release-server
-
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.
Added ESLint & Stylelint (ArekSredzki#219)
Extends eslint:recommended & stylelint-config-standard
- Loading branch information
1 parent
0bb3809
commit 898ad43
Showing
3 changed files
with
47 additions
and
2 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,31 @@ | ||
module.exports = { | ||
'env': { | ||
'browser': true, | ||
'commonjs': true, | ||
'es6': true, | ||
'jquery': true, | ||
'node': true | ||
}, | ||
'extends': [ | ||
'eslint:recommended' | ||
], | ||
'globals': { | ||
'angular': 'readonly', | ||
'sails': 'readonly', | ||
|
||
'Asset': 'readonly', | ||
'Channel': 'readonly', | ||
'Flavor': 'readonly', | ||
'Version': 'readonly', | ||
|
||
'AssetService': 'readonly', | ||
'AuthService': 'readonly', | ||
'AuthToken': 'readonly', | ||
'ChannelService': 'readonly', | ||
'FlavorService': 'readonly', | ||
'PlatformService': 'readonly', | ||
'UtilityService': 'readonly', | ||
'VersionService': 'readonly', | ||
'WindowsReleaseService': 'readonly' | ||
} | ||
}; |
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 @@ | ||
{ | ||
"extends": "stylelint-config-standard", | ||
"rules": { | ||
"at-rule-no-unknown": null, | ||
"no-descending-specificity": null | ||
} | ||
} |
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 |
---|---|---|
|
@@ -49,13 +49,20 @@ | |
"debug": "node debug app.js", | ||
"start": "node app.js", | ||
"migrate": "db-migrate", | ||
"postinstall": "bower install" | ||
"postinstall": "bower install", | ||
"eslint": "eslint ./*.js api assets/js config migrations tasks", | ||
"stylelint": "stylelint assets/styles/*.*" | ||
}, | ||
"main": "app.js", | ||
"author": { | ||
"name": "Arek Sredzki", | ||
"email": "[email protected]", | ||
"url": "http://arek.io/" | ||
}, | ||
"license": "MIT" | ||
"license": "MIT", | ||
"devDependencies": { | ||
"eslint": "^6.5.1", | ||
"stylelint": "^11.0.0", | ||
"stylelint-config-standard": "^19.0.0" | ||
} | ||
} |