GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — rsuite.github.io/.eslintrc.js at master · rsuite/rsuite.github.io

This repository was archived by the owner on Sep 14, 2022. It is now read-only.

Expand file tree

/

.eslintrc.js

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
39 lines (37 loc) · 1.14 KB
/

.eslintrc.js

Copy path

File metadata and controls

39 lines (37 loc) · 1.14 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
'use strict';
const OFF = 0;
// const WARNING = 1;
const ERROR = 2;
module.exports = {
env: {
browser: true,
es6: true
},
parser: 'babel-eslint',
plugins: ['react', 'prettier'],
parserOptions: {
ecmaVersion: 6,
sourceType: 'module',
ecmaFeatures: {
jsx: true,
experimentalObjectRestSpread: true
}
},
rules: {
indent: [ERROR, 2, { SwitchCase: 1 }], //规定代码的缩进方式:2个空格
camelcase: ERROR, //强制驼峰法命名
curly: ERROR, //必须使用 if(){} 中的{}
eqeqeq: ERROR, //必须使用全等
'brace-style': [ERROR, '1tbs'], //大括号风格
quotes: [ERROR, 'single'], //引号类型
semi: [ERROR, 'always'], //语句强制分号结尾
'space-infix-ops': ERROR, //中缀操作符周围要不要有空格
'no-param-reassign': OFF, //不允许对函数的形参进行赋值
'prefer-spread': ERROR, //首选展开运算
'comma-dangle': OFF, //不允许或强制在对象字面量或者数组属性的结尾使用逗号
'padded-blocks': OFF, //规定代码块前后是否要加空行
'prefer-const': OFF,
'no-var': OFF,
'one-var': OFF
}
};
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.