Skip to content

Commit

Permalink
feat: add f2elint and fix lint error
Browse files Browse the repository at this point in the history
  • Loading branch information
rsonghuster committed Oct 31, 2023
1 parent b2bb647 commit 36cffaf
Show file tree
Hide file tree
Showing 40 changed files with 16,642 additions and 5,216 deletions.
13 changes: 13 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
root = true

[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
quote_type = single

[*.md]
trim_trailing_whitespace = false
11 changes: 11 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
build/
coverage/
dist/
es/
lib/
node_modules/
**/*.min.js
**/*-min.js
**/*.bundle.js
docs/
__tests__/
8 changes: 8 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
module.exports = {
extends: ['eslint-config-ali/typescript', 'prettier', 'prettier/@typescript-eslint'],
rules: {
'no-console': 'off',
'no-require-imports': 'off',
'@typescript-eslint/explicit-member-accessibility': 0,
},
};
3 changes: 3 additions & 0 deletions .markdownlint.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": "markdownlint-config-ali"
}
8 changes: 8 additions & 0 deletions .markdownlintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
node_modules/
build/
dist/
coverage/
es/
lib/
docs/

11 changes: 11 additions & 0 deletions .stylelintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
node_modules/
build/
dist/
coverage/
es/
lib/
**/*.min.css
**/*-min.css
**/*.bundle.css
__tests__/
docs/
3 changes: 3 additions & 0 deletions .stylelintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module.exports = {
extends: 'stylelint-config-ali',
};
6 changes: 3 additions & 3 deletions __tests__/e2e/apt/code/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ module.exports.handler = function (event, context, callback) {
console.log(event.toString());
execSync('jq --help', {
shell: true,
stdio: 'inherit'
stdio: 'inherit',
});

execSync('rsync --version', {
shell: true,
stdio: 'inherit'
stdio: 'inherit',
});
callback(null, 'hello world');
};
3 changes: 3 additions & 0 deletions commitlint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module.exports = {
extends: ['ali'],
};
5 changes: 5 additions & 0 deletions f2elint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module.exports = {
enableStylelint: true,
enableMarkdownlint: false,
enablePrettier: true,
};
Loading

0 comments on commit 36cffaf

Please sign in to comment.