Skip to content
This repository was archived by the owner on May 5, 2023. It is now read-only.

Commit 82c89af

Browse files
authored
Merge pull request #187 from DesignSystemsOSS/v2.0
Merging v2.0 to stable version
2 parents 1fb13e9 + a52420d commit 82c89af

20 files changed

+2710
-252
lines changed

.babelrc.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
module.exports = {
2+
presets: [
3+
[
4+
'@babel/preset-env',
5+
{
6+
loose: true,
7+
bugfixes: true,
8+
modules: false
9+
}
10+
]
11+
]
12+
};

.browserslistrc

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# https://github.com/browserslist/browserslist#readme
2+
3+
>= 0.5%
4+
last 2 major versions
5+
not dead
6+
Chrome >= 60
7+
Firefox >= 60
8+
Firefox ESR
9+
iOS >= 12
10+
Safari >= 12
11+
not Explorer <= 11

.editorconfig

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# editorconfig.org
2+
3+
root = true
4+
5+
[*]
6+
charset = utf-8
7+
end_of_line = lf
8+
indent_size = 2
9+
indent_style = space
10+
insert_final_newline = true
11+
trim_trailing_whitespace = true

.eslintignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
.vscode/
2+
node_modules/

.eslintrc.json

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
{
2+
"root": true,
3+
"extends": [
4+
"plugin:import/errors",
5+
"plugin:import/warnings",
6+
"plugin:unicorn/recommended",
7+
"xo",
8+
"xo/browser"
9+
],
10+
"rules": {
11+
"capitalized-comments": "off",
12+
"indent": [
13+
"error",
14+
2,
15+
{
16+
"MemberExpression": "off",
17+
"SwitchCase": 1
18+
}
19+
],
20+
"max-params": [
21+
"warn",
22+
5
23+
],
24+
"multiline-ternary": [
25+
"error",
26+
"always-multiline"
27+
],
28+
"new-cap": [
29+
"error",
30+
{
31+
"properties": false
32+
}
33+
],
34+
"no-console": "error",
35+
"object-curly-spacing": [
36+
"error",
37+
"always"
38+
],
39+
"semi": [
40+
"error",
41+
"never"
42+
],
43+
"unicorn/consistent-function-scoping": "off",
44+
"unicorn/explicit-length-check": "off",
45+
"unicorn/no-array-callback-reference": "off",
46+
"unicorn/no-array-for-each": "off",
47+
"unicorn/no-for-loop": "off",
48+
"unicorn/no-null": "off",
49+
"unicorn/no-unused-properties": "error",
50+
"unicorn/no-useless-undefined": "off",
51+
"unicorn/prefer-dom-node-append": "off",
52+
"unicorn/prefer-dom-node-dataset": "off",
53+
"unicorn/prefer-dom-node-remove": "off",
54+
"unicorn/prefer-module": "off",
55+
"unicorn/prefer-query-selector": "off",
56+
"unicorn/prefer-spread": "off",
57+
"unicorn/prevent-abbreviations": "off"
58+
}
59+
}

.github/workflows/ansible-lint.yml

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
name: Ansible Lint # feel free to pick your own name
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
build:
7+
8+
runs-on: ubuntu-latest
9+
10+
steps:
11+
# Important: This sets up your GITHUB_WORKSPACE environment variable
12+
- uses: actions/checkout@v2
13+
14+
- name: Lint Ansible Playbook
15+
# replace "master" with any valid ref
16+
uses: ansible/ansible-lint-action@master
17+
with:
18+
# [required]
19+
# Paths to ansible files (i.e., playbooks, tasks, handlers etc..)
20+
# or valid Ansible directories according to the Ansible role
21+
# directory structure.
22+
# If you want to lint multiple ansible files, use the following syntax
23+
# targets: |
24+
# playbook_1.yml
25+
# playbook_2.yml
26+
targets: ""
27+
# [optional]
28+
# Arguments to override a package and its version to be set explicitly.
29+
# Must follow the example syntax.
30+
override-deps: |
31+
ansible==2.9
32+
ansible-lint==4.2.0
33+
# [optional]
34+
# Arguments to be passed to the ansible-lint
35+
36+
# Options:
37+
# -q quieter, although not silent output
38+
# -p parseable output in the format of pep8
39+
# --parseable-severity parseable output including severity of rule
40+
# -r RULESDIR specify one or more rules directories using one or
41+
# more -r arguments. Any -r flags override the default
42+
# rules in ansiblelint/rules, unless -R is also used.
43+
# -R Use default rules in ansiblelint/rules in addition to
44+
# any extra
45+
# rules directories specified with -r. There is no need
46+
# to specify this if no -r flags are used
47+
# -t TAGS only check rules whose id/tags match these values
48+
# -x SKIP_LIST only check rules whose id/tags do not match these
49+
# values
50+
# --nocolor disable colored output
51+
# --exclude=EXCLUDE_PATHS
52+
# path to directories or files to skip. This option is
53+
# repeatable.
54+
# -c C Specify configuration file to use. Defaults to ".ansible-lint"
55+
args: ""
56+

.github/workflows/codeql-analysis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ name: "CodeQL"
1313

1414
on:
1515
push:
16-
branches: [ master, v2.0 ]
16+
branches: [ master, v2.0, v2/stable ]
1717
pull_request:
1818
# The branches below must be a subset of the branches above
19-
branches: [ master, v2.0 ]
19+
branches: [ master, v2.0, v2/stable ]
2020
schedule:
2121
- cron: '16 15 * * 4'
2222

.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
2+
# dependencies
3+
/node_modules
4+
5+
# vscode settings ignore
6+
.vscode

0 commit comments

Comments
 (0)