Skip to content

Commit

Permalink
Adjust linter
Browse files Browse the repository at this point in the history
  • Loading branch information
John Ouellet committed Nov 8, 2021
1 parent 1534bba commit 0378ed7
Show file tree
Hide file tree
Showing 4 changed files with 54 additions and 8 deletions.
12 changes: 12 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# top-most EditorConfig file
root = true

# Unix-style newlines with a newline ending every file
[*]
end_of_line = lf
insert_final_newline = true
charset = utf-8

[*.js]
indent_style = space
indent_size = 2
34 changes: 34 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"env": {
"node": true,
"mocha": true,
"es6": true
},
"parserOptions": {
"sourceType": "module",
"ecmaVersion": 9
},
"extends": [
"plugin:vue/recommended",
"google"
],
"rules": {
"linebreak-style": 0,
"arrow-parens": ["error",
"as-needed"
],
"max-len": ["error", {
"code": 12000,
"ignoreComments": true
}],
"require-jsdoc": ["error", {
"require": {
"FunctionDeclaration": true,
"MethodDefinition": false,
"ClassDeclaration": false,
"ArrowFunctionExpression": false,
"FunctionExpression": false
}
}]
}
}
12 changes: 6 additions & 6 deletions lib/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const { path } = require('@vuepress/utils')
const {path} = require('@vuepress/utils');

module.exports = (options, app) => {
// Define default options
Expand Down Expand Up @@ -31,15 +31,15 @@ module.exports = (options, app) => {
'@vuepress/register-components',
{
componentsDir: path.resolve(__dirname, 'components/global'),
componentsPatterns: ['*.vue', '**/*.vue']
componentsPatterns: ['*.vue', '**/*.vue'],
},
],
[
'@vuepress/plugin-palette',
{
preset: 'sass'
preset: 'sass',
},
],
]
}
}
],
};
};
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@lando/vuepress-docs-theme",
"description": "A VuePress 2 Theme for Lando Doc Based Sites",
"version": "0.1.0",
"version": "0.0.9",
"author": "John Ouellet @labboy0276",
"license": "GPL-3.0",
"repository": "github:lando/vuepress-docs-theme",
Expand All @@ -22,7 +22,7 @@
"docs:dev": "vuepress dev docs",
"docs:build": "vuepress build docs --dest _site",
"docs:lint": "eslint -c docs/.eslintrc.json --quiet docs/.vuepress",
"lint": "eslint --quiet . && yarn docs:lint",
"lint": "eslint --quiet .",
"release": "bump --prompt --tag --all --push",
"test": "yarn lint"
},
Expand Down

0 comments on commit 0378ed7

Please sign in to comment.