Skip to content

Commit

Permalink
Added ESLint & Stylelint (ArekSredzki#219)
Browse files Browse the repository at this point in the history
Extends eslint:recommended & stylelint-config-standard
  • Loading branch information
Dustin Brett authored and ArekSredzki committed Oct 9, 2019
1 parent 0bb3809 commit 898ad43
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 2 deletions.
31 changes: 31 additions & 0 deletions .eslintrc.js
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'
}
};
7 changes: 7 additions & 0 deletions .stylelintrc
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
}
}
11 changes: 9 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}

0 comments on commit 898ad43

Please sign in to comment.