@holism/dotfiles
v0.0.12
Published
- .tslint.json - .prettier.config.js - .editorconfig
Downloads
6
Maintainers
Readme
dotfiles
- .tslint.json
- .prettier.config.js
- .editorconfig
Dotfiles for your javascripts and styles. Use the force, Luke!
Install
$ npm i -S @holism/dotfiles
Configure
- package.json
"tslint": "./node_modules/tslint/bin/tslint -p tsconfig.json './src/**/*.{d.ts,ts,tsx}'",
"tslint:fix": "./node_modules/tslint/bin/tslint -p tsconfig.json --fix './src/**/*.{d.ts,ts,tsx}'",
"prettier:base": "prettier --config ./prettier.config.js",
"prettier:check": "npm run prettier:base -- --list-different './src/**/*.{d.ts,ts,tsx}'",
"prettier:write": "npm run prettier:base -- --write './src/**/*.{d.ts,ts,tsx}'",
"lint": "npm run tslint && npm run prettier:check",
"lint:css": "./node_modules/.bin/stylelint './src/**/style.ts'",
Copy .editorconfig to project dir (automatically hooks up in Idea, RubyMine and WebStorm, no additional tuning needed). For VS Code use settings.json
Add tslint.json to project directory
{
"extends": [
"@holism/dotfiles/tslint"
]
}
- Add prettier.config.js to project directory
'use strict';
module.exports = require('@holism/dotfiles/prettier.config.js');
- Add .stylelintrc to project directory
{
"extends": [
"@holism/dotfiles/stylelint.config.js"
]
}
MIT © Gazprombank