Skip to content

Commit c09b5a2

Browse files
authored
Merge pull request #26 from LIN3S/0.6.x-dev
0.6.x dev
2 parents efed257 + a6f4225 commit c09b5a2

48 files changed

Lines changed: 1533 additions & 18804 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,13 @@ This changelog references the relevant changes done between versions.
55
To get the diff for a specific change, go to https://github.com/LIN3S/AdminBundle/commit/XXX where XXX is the change hash
66
To get the diff between two versions, go to https://github.com/LIN3S/AdminBundle/compare/v0.4.0...v0.5.0
77

8+
* 0.6.0
9+
* Full refactor of AdminBundle's JavaScript.
10+
* Removed jQuery dependency
11+
* Migrated code to ES2015 standards using `class` approach
12+
* [BC break] Refactored Twig components.
13+
* Button, filter flash_message and form_collection components are moved from partial to components directory so,
14+
please, check out before upgrade if your project extends this components.
815
* 0.5.1
916
* Updated Webpack to v3 to solve bug related with the production build
1017
* Improved general js code to avoid minor bugs

src/LIN3S/AdminBundle/Resources/private/.eslint.yml

Lines changed: 0 additions & 183 deletions
This file was deleted.
Lines changed: 179 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,179 @@
1+
module.exports = {
2+
"root": true,
3+
"extends": "eslint:recommended",
4+
"parser": "babel-eslint",
5+
"env": {"browser": true, "es6": true, "jest": true},
6+
"globals": {
7+
"__DEV__": true,
8+
"dataLayer": true,
9+
"FB": true,
10+
"google": true,
11+
"new": true,
12+
"process": true,
13+
"require": true,
14+
"target": true
15+
},
16+
"parserOptions": {
17+
"sourceType": "module",
18+
"ecmaVersion": 7,
19+
"ecmaFeatures": {
20+
"classes": true,
21+
"experimentalObjectRestSpread": true,
22+
"modules": true,
23+
"templateStrings": true
24+
}
25+
},
26+
"plugins": ["babel", "class-property"],
27+
"rules": {
28+
"arrow-body-style": "off",
29+
"indent": ["error", 2, {"SwitchCase": 1}],
30+
"linebreak-style": ["error", "unix"],
31+
"semi": ["error", "always"],
32+
"block-scoped-var": "error",
33+
"brace-style": "error",
34+
"camelCase": "off",
35+
"comma-dangle": "off",
36+
"comma-spacing": "error",
37+
"comma-style": "error",
38+
"complexity": "off",
39+
"curly": ["error", "all"],
40+
"default-case": "off",
41+
"dot-notation": ["error", {"allowKeywords": true}],
42+
"eol-last": "error",
43+
"eqeqeq": "error",
44+
"func-names": "off",
45+
"func-style": ["error", "declaration", {"allowArrowFunctions": true}],
46+
"generator-star": "off",
47+
"guard-for-in": "off",
48+
"handle-callback-err": "error",
49+
"key-spacing": ["error", {"beforeColon": false, "afterColon": true}],
50+
"keyword-spacing": "error",
51+
"max-depth": ["warn", 4],
52+
"max-len": ["error", 120],
53+
"max-nested-callbacks": ["warn", 2],
54+
"max-params": ["warn", 4],
55+
"max-statements": ["off", 10],
56+
"new-cap": "error",
57+
"new-parens": "error",
58+
"no-alert": "error",
59+
"no-array-constructor": "error",
60+
"no-caller": "error",
61+
"no-catch-shadow": "error",
62+
"no-cond-assign": ["error", "always"],
63+
"no-confusing-arrow": "error",
64+
"no-console": "off",
65+
"no-constant-condition": "error",
66+
"no-control-regex": "error",
67+
"no-debugger": "error",
68+
"no-delete-var": "error",
69+
"no-div-regex": "off",
70+
"no-dupe-keys": "error",
71+
"no-else-return": "error",
72+
"no-empty": "error",
73+
"no-empty-character-class": "error",
74+
"no-eq-null": "error",
75+
"no-eval": "error",
76+
"no-ex-assign": "error",
77+
"no-extend-native": "error",
78+
"no-extra-bind": "error",
79+
"no-extra-boolean-cast": "error",
80+
"no-extra-parens": ["error", "functions"],
81+
"no-extra-semi": "error",
82+
"no-fallthrough": "error",
83+
"no-floating-decimal": "off",
84+
"no-func-assign": "error",
85+
"no-implied-eval": "error",
86+
"no-inline-comments": "off",
87+
"no-inner-declarations": ["error", "functions"],
88+
"no-invalid-regexp": "error",
89+
"no-irregular-whitespace": "error",
90+
"no-iterator": "error",
91+
"no-label-var": "error",
92+
"no-labels": "error",
93+
"no-lone-blocks": "error",
94+
"no-lonely-if": "error",
95+
"no-loop-func": "error",
96+
"no-mixed-requires": ["off", false],
97+
"no-mixed-spaces-and-tabs": ["error", false],
98+
"no-multi-spaces": "error",
99+
"no-multi-str": "error",
100+
"no-multiple-empty-lines": ["error", {"max": 2}],
101+
"no-native-reassign": "error",
102+
"no-negated-in-lhs": "error",
103+
"no-nested-ternary": "off",
104+
"no-new": "off",
105+
"no-new-func": "error",
106+
"no-new-object": "error",
107+
"no-new-require": "off",
108+
"no-new-wrappers": "error",
109+
"no-obj-calls": "error",
110+
"no-octal": "error",
111+
"no-octal-escape": "error",
112+
"no-path-concat": "off",
113+
"no-plusplus": "off",
114+
"no-process-env": "off",
115+
"no-process-exit": "off",
116+
"no-proto": "error",
117+
"no-redeclare": "error",
118+
"no-regex-spaces": "error",
119+
"no-reserved-keys": "off",
120+
"no-restricted-modules": "off",
121+
"no-return-assign": "error",
122+
"no-script-url": "error",
123+
"no-self-compare": "error",
124+
"no-sequences": "error",
125+
"no-shadow": ["error", {"allow": ["done", "resolve", "reject", "done", "callBack", "state"]}],
126+
"no-shadow-restricted-names": "error",
127+
"no-spaced-func": "error",
128+
"no-sparse-arrays": "error",
129+
"no-sync": "off",
130+
"no-ternary": "off",
131+
"no-trailing-spaces": "error",
132+
"no-undef": "error",
133+
"no-undef-init": "error",
134+
"no-undefined": "off",
135+
"no-underscore-dangle": "off",
136+
"no-unreachable": "error",
137+
"no-unused-expressions": "error",
138+
"no-unused-vars": ["error", {"vars": "all", "args": "after-used"}],
139+
"no-use-before-define": "error",
140+
"no-void": "error",
141+
"no-var": "off",
142+
"no-warning-comments": ["off", {"terms": ["todo", "fixme", "xxx"], "location": "start"}],
143+
"no-with": "error",
144+
"operator-assignment": ["off", "always"],
145+
"padded-blocks": "off",
146+
"quote-props": "off",
147+
"radix": "error",
148+
"sort-vars": "off",
149+
"space-after-function-name": ["off", "never"],
150+
"space-before-blocks": "error",
151+
"space-in-parens": "error",
152+
"space-infix-ops": "error",
153+
"space-unary-ops": ["error", {"words": true, "nonwords": false}],
154+
"spaced-comment": "error",
155+
"strict": ["error", "global"],
156+
"use-isnan": "error",
157+
"valid-jsdoc": "error",
158+
"valid-typeof": "error",
159+
"vars-on-top": "off",
160+
"wrap-iife": "off",
161+
"wrap-regex": "off",
162+
"yoda": "off",
163+
"arrow-spacing": ["error", {"before": true, "after": true}],
164+
"constructor-super": "error",
165+
"generator-star-spacing": "error",
166+
"no-class-assign": "error",
167+
"no-const-assign": "error",
168+
"no-dupe-class-members": "error",
169+
"no-this-before-super": "off",
170+
"object-shorthand": ["error", "always"],
171+
"prefer-arrow-callback": "error",
172+
"prefer-const": "error",
173+
"prefer-spread": "error",
174+
"prefer-reflect": "error",
175+
"prefer-template": "error",
176+
"require-yield": "error",
177+
"babel/semi": ["error", "always"]
178+
}
179+
};
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
# This file is part of the CMS Kernel library.
1+
# This file is part of the Admin Bundle.
22
#
3-
# Copyright (c) 2016-2017 LIN3S <info@lin3s.com>
3+
# Copyright (c) 2015-present LIN3S <info@lin3s.com>
44
#
55
# For the full copyright and license information, please view the LICENSE
66
# file that was distributed with this source code.
77

8-
node_modules
8+
src/LIN3S/AdminBundle/Resources/private/node_modules

0 commit comments

Comments
 (0)