mirror of
https://github.com/vuejs/babel-plugin-jsx.git
synced 2025-07-07 17:11:02 +08:00
chore: improve setup of the tooling (#4)
* chore: lockfile should be committed to the repo See https://classic.yarnpkg.com/blog/2016/11/24/lockfiles-for-all/ * chore: explicitly set the npm client to yarn * chore: set up yarn workspaces * chore: use jest.config.js See: https://jestjs.io/docs/en/configuration Better follow the convention than to define yet another config file name * test: the `globals` configuration is redundant * chore: prefer babel.config.js over .babelrc See https://babeljs.io/docs/en/config-files * chore: the jsxInjection alias is extraneous * chore: add .js extension to eslint config It is the preferred configuration file format. https://eslint.org/docs/user-guide/configuring#configuration-file-formats Also deleted the jasmine env as it's not used in this project. * chore: downgrade to eslint v6 for compatibility with other dependencies * chore: use eslint-config-airbnb-base instead of the full airbnb config * chore: remove babel-eslint Syntax used in this repo can already be parsed with the default ESLint parser * chore: add missing peer dependency for `@vue/test-utils` * chore: enable useWorkspaces in lerna
This commit is contained in:
23
.eslintrc.js
Normal file
23
.eslintrc.js
Normal file
@ -0,0 +1,23 @@
|
||||
module.exports = {
|
||||
root: true,
|
||||
parserOptions: {
|
||||
ecmaVersion: 2020,
|
||||
ecmaFeatures: {
|
||||
jsx: true,
|
||||
},
|
||||
},
|
||||
env: {
|
||||
browser: true,
|
||||
node: true,
|
||||
jest: true,
|
||||
es6: true,
|
||||
},
|
||||
extends: 'eslint-config-airbnb-base',
|
||||
rules: {
|
||||
'no-nested-ternary': [0],
|
||||
'no-param-reassign': [0],
|
||||
'no-use-before-define': [0],
|
||||
'no-plusplus': [0],
|
||||
'import/no-extraneous-dependencies': [0],
|
||||
},
|
||||
};
|
Reference in New Issue
Block a user