mirror of
https://github.com/milligram/milligram.git
synced 2024-11-13 16:54:22 +00:00
add sass-lint support
This commit is contained in:
parent
84be4bf44c
commit
36cf700762
74
.sass-lint.yml
Normal file
74
.sass-lint.yml
Normal file
@ -0,0 +1,74 @@
|
|||||||
|
#########################
|
||||||
|
## Sass Lint File
|
||||||
|
## See rules https://github.com/sasstools/sass-lint/tree/master/docs/rules
|
||||||
|
#########################
|
||||||
|
# Linter Options
|
||||||
|
options:
|
||||||
|
# Don't merge default rules
|
||||||
|
merge-default-rules: false
|
||||||
|
# File Options
|
||||||
|
files:
|
||||||
|
include: 'src/**/*.s+(a|c)ss'
|
||||||
|
ignore:
|
||||||
|
- 'node_modules/**/*.*'
|
||||||
|
# Rule Configuration
|
||||||
|
rules:
|
||||||
|
attribute-quotes:
|
||||||
|
- 2
|
||||||
|
-
|
||||||
|
include: true
|
||||||
|
extends-before-mixins: 2
|
||||||
|
extends-before-declarations: 2
|
||||||
|
placeholder-in-extend: 2
|
||||||
|
mixins-before-declarations:
|
||||||
|
- 2
|
||||||
|
-
|
||||||
|
exclude:
|
||||||
|
- breakpoint
|
||||||
|
- mq
|
||||||
|
nesting-depth:
|
||||||
|
- 1
|
||||||
|
-
|
||||||
|
max-depth: 2
|
||||||
|
no-warn: 1
|
||||||
|
no-debug: 1
|
||||||
|
no-ids: 2
|
||||||
|
no-duplicate-properties: 1
|
||||||
|
no-trailing-whitespace: 2
|
||||||
|
|
||||||
|
leading-zero:
|
||||||
|
- 2
|
||||||
|
-
|
||||||
|
include: false
|
||||||
|
no-vendor-prefixes:
|
||||||
|
- 2
|
||||||
|
-
|
||||||
|
ignore-non-standard: true
|
||||||
|
no-important: 2
|
||||||
|
hex-notation:
|
||||||
|
- 2
|
||||||
|
-
|
||||||
|
style: lowercase
|
||||||
|
indentation:
|
||||||
|
- 2
|
||||||
|
-
|
||||||
|
size: 'tab'
|
||||||
|
property-sort-order:
|
||||||
|
- 1
|
||||||
|
-
|
||||||
|
order: 'alphabetical'
|
||||||
|
ignore-custom-properties: true
|
||||||
|
property-units:
|
||||||
|
- 1
|
||||||
|
-
|
||||||
|
global: ['em', 'rem', '%']
|
||||||
|
quotes: 2
|
||||||
|
space-after-colon: 2
|
||||||
|
space-after-comma: 2
|
||||||
|
single-line-per-selector: 2
|
||||||
|
variable-for-property:
|
||||||
|
- 2
|
||||||
|
-
|
||||||
|
properties:
|
||||||
|
- color
|
||||||
|
zero-unit: 2
|
140
package.json
140
package.json
@ -1,71 +1,73 @@
|
|||||||
{
|
{
|
||||||
"name": "milligram",
|
"name": "milligram",
|
||||||
"version": "1.1.0",
|
"version": "1.1.0",
|
||||||
"description": "A minimalist CSS framework.",
|
"description": "A minimalist CSS framework.",
|
||||||
"homepage": "http://milligram.github.io",
|
"homepage": "http://milligram.github.io",
|
||||||
"repository": "milligram/milligram",
|
"repository": "milligram/milligram",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"author": "CJ Patoilo <cjpatoilo@gmail.com>",
|
"author": "CJ Patoilo <cjpatoilo@gmail.com>",
|
||||||
"main": "dist/milligram.css",
|
"main": "dist/milligram.css",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"bootstrap",
|
"bootstrap",
|
||||||
"css",
|
"css",
|
||||||
"css3",
|
"css3",
|
||||||
"flexbox",
|
"flexbox",
|
||||||
"front-end",
|
"front-end",
|
||||||
"framework",
|
"framework",
|
||||||
"html",
|
"html",
|
||||||
"html5",
|
"html5",
|
||||||
"kickstarter",
|
"kickstarter",
|
||||||
"less",
|
"less",
|
||||||
"responsive",
|
"responsive",
|
||||||
"mobile",
|
"mobile",
|
||||||
"mobile-first",
|
"mobile-first",
|
||||||
"postcss",
|
"postcss",
|
||||||
"responsive",
|
"responsive",
|
||||||
"sass",
|
"sass",
|
||||||
"scss",
|
"scss",
|
||||||
"stylus"
|
"stylus"
|
||||||
],
|
],
|
||||||
"ignore": [
|
"ignore": [
|
||||||
".editorconfig",
|
".editorconfig",
|
||||||
".github",
|
".github",
|
||||||
".gitignore",
|
".gitignore",
|
||||||
".npmignore",
|
".npmignore",
|
||||||
".travis.yml",
|
".travis.yml",
|
||||||
"bower.json",
|
"bower.json",
|
||||||
"changelog.md",
|
"changelog.md",
|
||||||
"component.json",
|
"component.json",
|
||||||
"composer.json",
|
"composer.json",
|
||||||
"package.js",
|
"package.js",
|
||||||
"package.json",
|
"package.json",
|
||||||
"src",
|
"src",
|
||||||
"test"
|
"test"
|
||||||
],
|
],
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"normalize.css": "latest"
|
"normalize.css": "latest"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"autoprefixer": "^6.3.6",
|
"autoprefixer": "^6.3.6",
|
||||||
"backstopjs": "^1.3.5",
|
"backstopjs": "^1.3.5",
|
||||||
"browser-sync": "^2.13.0",
|
"browser-sync": "^2.13.0",
|
||||||
"node-sass": "^3.7.0",
|
"node-sass": "^3.7.0",
|
||||||
"npm-run-all": "^2.1.1",
|
"npm-run-all": "^2.1.1",
|
||||||
"onchange": "^2.4.0",
|
"onchange": "^2.4.0",
|
||||||
"postcss-cli": "^2.5.2",
|
"postcss-cli": "^2.5.2",
|
||||||
"slimerjs": "^0.906.2"
|
"sass-lint": "^1.8.2",
|
||||||
},
|
"slimerjs": "^0.906.2"
|
||||||
"engines": {
|
},
|
||||||
"node": "^6.0.0"
|
"engines": {
|
||||||
},
|
"node": "^6.0.0"
|
||||||
"scripts": {
|
},
|
||||||
"banner": "for m in dist/*.css; do echo '/*!\n * Milligram v1.1.0\n * http://milligram.github.io\n *\n * Copyright (c) 2016 CJ Patoilo\n * Licensed under the MIT license\n*/\n' | cat - $m > temp && mv temp $m; done",
|
"scripts": {
|
||||||
"sass": "node-sass --output-style expanded src/milligram.sass dist/milligram.css && node-sass --output-style compressed src/milligram.sass dist/milligram.min.css",
|
"banner": "for m in dist/*.css; do echo '/*!\n * Milligram v1.1.0\n * http://milligram.github.io\n *\n * Copyright (c) 2016 CJ Patoilo\n * Licensed under the MIT license\n*/\n' | cat - $m > temp && mv temp $m; done",
|
||||||
"autoprefixer": "postcss -u autoprefixer --no-map.inline --autoprefixer.browsers 'last 1 versions' -r dist/*.css",
|
"sass": "node-sass --output-style expanded src/milligram.sass dist/milligram.css && node-sass --output-style compressed src/milligram.sass dist/milligram.min.css",
|
||||||
"build": "npm-run-all sass autoprefixer banner",
|
"autoprefixer": "postcss -u autoprefixer --no-map.inline --autoprefixer.browsers 'last 1 versions' -r dist/*.css",
|
||||||
"watch": "onchange src -- npm run build",
|
"build": "npm-run-all lint sass autoprefixer banner",
|
||||||
"serve": "browser-sync start -s test --ss dist -f dist",
|
"lint": "sass-lint -c .sass-lint.yml 'src/*.sass' --verbose --no-exit",
|
||||||
"start": "npm-run-all -p watch serve",
|
"watch": "onchange src -- npm run build",
|
||||||
"test": "cd node_modules/backstopjs && npm run test -- --configPath=../../test/visual/backstop.config.js && cd ../../"
|
"serve": "browser-sync start -s test --ss dist -f dist",
|
||||||
}
|
"start": "npm-run-all -p watch serve",
|
||||||
|
"test": "cd node_modules/backstopjs && npm run test -- --configPath=../../test/visual/backstop.config.js && cd ../../"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user