Skip to content

Instantly share code, notes, and snippets.

@tornqvist
Last active September 14, 2015 08:57
Show Gist options
  • Save tornqvist/4beb18ffba050021604c to your computer and use it in GitHub Desktop.
Save tornqvist/4beb18ffba050021604c to your computer and use it in GitHub Desktop.
npm scripts setup for testing SUIT CSS and JavaScript
{
"name": "my-module",
"version": "1.0.0",
"author": "Carl Törnqvist <[email protected]>",
"scripts": {
"test": "npm run lint:js && npm run lint:css",
"lint:js": "eslint ./components",
"lint:css": "postcss -u postcss-bem-linter -u postcss-reporter --postcss-reporter.throwError true -d $TMPDIR ./components/**/*.css"
},
"devDependencies": {
"babel-core": "^5.8.22",
"babel-eslint": "^4.0.5",
"eslint": "^1.1.0",
"postcss-bem-linter": "^0.6.0",
"postcss-cli": "^1.5.0",
"postcss-reporter": "^0.4.0"
},
"eslintConfig": {
"rules": {
"indent": [2, 2],
"quotes": [2, "single"],
"linebreak-style": [2, "unix"],
"semi": [2, "always"]
},
"parser": "babel-eslint",
"env": {
"browser": true
},
"extends": "eslint:recommended"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment