Commit a9dd0ec8 authored by Iván Sánchez Ortega's avatar Iván Sánchez Ortega

eslint → prettier

parent 6c875bb3
Pipeline #43304325 passed with stage
in 44 seconds
module.exports = {
"rules": {
"indent": [ 2, "tab", { "SwitchCase": 1 } ],
"linebreak-style": [ 2, "unix" ],
"semi": [ 2, "always" ],
"keyword-spacing": [ 2, { "before": true, "after": true } ],
"space-before-blocks": [ 2, "always" ],
"space-before-function-paren": [ 2, "always" ],
"no-mixed-spaces-and-tabs": [ 2, "smart-tabs" ],
"no-cond-assign": [ 0 ],
"no-console": [ 2, {"allow": ["error"]} ]
},
"env": {
"es6": true,
"browser": true,
"mocha": true,
"node": true
},
"extends": "eslint:recommended",
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module"
},
"globals": {
"L": true
}
};
......@@ -4,9 +4,17 @@
"description": "Apply WebGL shaders to your LeafletJS tile layers",
"main": "src/Leaflet.TileLayer.GL.js",
"scripts": {
"test": "echo \"no tests...\"",
"lint": "eslint src",
"lintfix": "eslint src --fix"
"lintfix": "prettier src/**.js --write"
},
"devDependencies": {
"prettier": "^1.15.3"
},
"prettier": {
"printWidth": 100,
"tabWidth": 4,
"useTabs": true,
"trailingComma": "es5",
"arrowParens": "always"
},
"repository": {
"type": "git",
......@@ -18,13 +26,7 @@
],
"author": "Iván Sánchez Ortega <ivan@sanchezortega.es>",
"license": "Beerware",
"devDependencies": {
"eslint": "^3.9.0"
},
"peerDependencies": {
"leaflet": "^1.0.3"
},
"dependencies": {
"prettier": "^1.13.6"
}
}
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment