Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View rerodrigues's full-sized avatar

Renato Rodrigues rerodrigues

View GitHub Profile
// package.json
{
"devDependencies": {
"eslint": "4.9.0",
"eslint-config-airbnb-base": "9.0.0",
"eslint-plugin-import": "2.0.1",
"git-validate": "2.2.4",
"lint-staged": "^8.1.7",
"prettier-eslint-cli": "^4.7.1"
@rerodrigues
rerodrigues / package.json
Created December 21, 2018 17:40
SASS-LINT package.json example
{
"name":"My Package",
"scripts":{
"sasslint":"sass-lint './app/**/*.scss' -v -q"
},
"pre-commit":[
"sasslint"
],
"dependencies":{
@rerodrigues
rerodrigues / .sass-lint.yml
Last active December 21, 2018 17:39
SASS-LINT Config Example
files:
include: '**/*.s+(a|c)ss'
options:
formatter: stylish
merge-default-rules: true
# Ruleset
rules:
class-name-format:
// global Action Types
exports.START_FETCHING = 'START_FETCHING';
exports.GO_TO_PAGE = 'GO_TO_PAGE';
exports.SHOW_ERROR = 'SHOW_ERROR';
// specific Action Types
const globalActionTypes = require('../../../business/actionTypes');
exports.SPECIFIC_ACTION = 'SPECIFIC_ACTION';
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "launch",